mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UpdateOptionsTest — add case auto check is enabled
This commit is contained in:
+7
@@ -4,6 +4,7 @@ package com.intellij.openapi.updateSettings
|
||||
import com.intellij.configurationStore.deserialize
|
||||
import com.intellij.openapi.updateSettings.impl.UpdateOptions
|
||||
import com.intellij.testFramework.ProjectRule
|
||||
import com.intellij.testFramework.assertions.Assertions.assertThat
|
||||
import com.intellij.util.loadElement
|
||||
import org.junit.ClassRule
|
||||
import org.junit.Test
|
||||
@@ -15,6 +16,12 @@ class UpdateOptionsTest {
|
||||
val projectRule = ProjectRule()
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `auto check is enabled`() {
|
||||
// it is quite important default value (true), so, ensure that it is not modified without changing test expectation (as an additional check)
|
||||
assertThat(UpdateOptions().isCheckNeeded).isTrue()
|
||||
}
|
||||
|
||||
@Test
|
||||
fun test() {
|
||||
loadElement("""
|
||||
|
||||
Reference in New Issue
Block a user