From a889c9218dcbb4a8ba3c80a08db304749956725f Mon Sep 17 00:00:00 2001 From: Teodora Sandu Date: Wed, 27 Mar 2024 14:51:23 +0000 Subject: [PATCH] chore: upgrade jdk version --- build.gradle.kts | 2 +- .../ui/toolwindow/SuggestionDescriptionPanelFromLSTest.kt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 62c85ad81..c40e7aa83 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,7 @@ version = scmVersion.version group = properties("pluginGroup") description = properties("pluginName") -val jdk = "17" +val jdk = "17.0.10" repositories { mavenCentral() diff --git a/src/test/kotlin/io/snyk/plugin/ui/toolwindow/SuggestionDescriptionPanelFromLSTest.kt b/src/test/kotlin/io/snyk/plugin/ui/toolwindow/SuggestionDescriptionPanelFromLSTest.kt index 270478db2..3ae87485a 100644 --- a/src/test/kotlin/io/snyk/plugin/ui/toolwindow/SuggestionDescriptionPanelFromLSTest.kt +++ b/src/test/kotlin/io/snyk/plugin/ui/toolwindow/SuggestionDescriptionPanelFromLSTest.kt @@ -123,6 +123,8 @@ class SuggestionDescriptionPanelFromLSTest : BasePlatformTestCase() { every { issue.additionalData.details } returns "HTML message" cut = SuggestionDescriptionPanelFromLS(snykCodeFile, issue) + Registry.get("ide.browser.jcef.enabled").setValue("false") + val actual = getJLabelByText(cut, "Test message") assertNull(actual) @@ -130,15 +132,15 @@ class SuggestionDescriptionPanelFromLSTest : BasePlatformTestCase() { assertNull(actualBrowser) } - // in the CI/CD JCEF is not enabled @Test - @Ignore fun `test createUI should build panel with HTML from details if feature flag is enabled`() { pluginSettings().isGlobalIgnoresFeatureEnabled = true every { issue.additionalData.details } returns "HTML message" cut = SuggestionDescriptionPanelFromLS(snykCodeFile, issue) + Registry.get("ide.browser.jcef.enabled").setValue("true") + val actual = getJLabelByText(cut, "Test message") assertNull(actual)