diff --git a/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/management/cli/CLIEmbedHostControllerTestCase.java b/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/management/cli/CLIEmbedHostControllerTestCase.java index 966a85a7318..bc317e25198 100644 --- a/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/management/cli/CLIEmbedHostControllerTestCase.java +++ b/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/management/cli/CLIEmbedHostControllerTestCase.java @@ -81,6 +81,9 @@ public class CLIEmbedHostControllerTestCase extends AbstractCliTestBase { @BeforeClass public static void beforeClass() throws Exception { + if (Runtime.version().feature() > 21) { + System.setProperty("jdk.console", "java.base"); // WFCORE-6167 workaround on JDK22+ + } Assume.assumeFalse("This test does not work with the IBM J9 JVM. There seems to be an issue with stdout" + " logging.", TestSuiteEnvironment.isIbmJvm()); @@ -104,6 +107,9 @@ public static void beforeClass() throws Exception { @AfterClass public static void afterClass() throws IOException { + if (Runtime.version().feature() > 21) { + System.setProperty("jdk.console", "jdk.internal.le"); // WFCORE-6167 workaround on JDK22+ + } if (!TestSuiteEnvironment.isIbmJvm()) { CLIEmbedUtil.copyConfig(ROOT, "domain", "logging.properties.backup", "logging.properties", false); try { diff --git a/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/management/cli/CLIEmbedServerTestCase.java b/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/management/cli/CLIEmbedServerTestCase.java index 20d6c7aaeae..7859833ae56 100644 --- a/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/management/cli/CLIEmbedServerTestCase.java +++ b/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/management/cli/CLIEmbedServerTestCase.java @@ -101,6 +101,9 @@ public class CLIEmbedServerTestCase extends AbstractCliTestBase { @BeforeClass public static void beforeClass() throws Exception { + if (Runtime.version().feature() > 21) { + System.setProperty("jdk.console", "java.base"); // WFCORE-6167 workaround on JDK22+ + } Assume.assumeFalse("This test does not work with the IBM J9 JVM. There seems to be an issue with stdout" + " logging.", TestSuiteEnvironment.isIbmJvm()); @@ -137,6 +140,9 @@ public static void beforeClass() throws Exception { @AfterClass public static void afterClass() throws IOException { + if (Runtime.version().feature() > 21) { + System.setProperty("jdk.console", "jdk.internal.le"); // WFCORE-6167 workaround on JDK22+ + } if (!TestSuiteEnvironment.isIbmJvm()) { CLIEmbedUtil.copyConfig(ROOT, "standalone", "logging.properties.backup", "logging.properties", false); try {