From 3caf6bba8b571b60c1ba2879abd7bae7c99672d4 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 10 Apr 2018 16:54:34 +0200 Subject: [PATCH] =?UTF-8?q?UpdateOptionsTest=20=E2=80=94=20add=20case=20`a?= =?UTF-8?q?uto=20check=20is=20enabled`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intellij/openapi/updateSettings/UpdateOptionsTest.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/updateSettings/UpdateOptionsTest.kt b/platform/platform-tests/testSrc/com/intellij/openapi/updateSettings/UpdateOptionsTest.kt index 56bfcc6b6759..3e13a31fb9c5 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/updateSettings/UpdateOptionsTest.kt +++ b/platform/platform-tests/testSrc/com/intellij/openapi/updateSettings/UpdateOptionsTest.kt @@ -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("""