This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git


The following commit(s) were added to refs/heads/master by this push:
     new 3ab7b742 tweak actions for CI debugging
3ab7b742 is described below

commit 3ab7b742b413d8b2a976cb0db712a7964ade6939
Author: Paul King <[email protected]>
AuthorDate: Thu Dec 19 16:31:11 2024 +1000

    tweak actions for CI debugging
---
 .../src/test/groovy/configuration/DriverConfigSpec.groovy           | 4 ++--
 .../src/main/groovy/geb/fixture/HeadlessTestSupport.groovy          | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy 
b/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
index 00510177..d1b01226 100644
--- a/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
+++ b/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
@@ -21,7 +21,7 @@ package configuration
 import geb.driver.CachingDriverFactory
 import geb.fixture.HeadlessTestSupport
 import geb.test.StandaloneWebDriverServer
-import org.junit.Assume
+import org.junit.jupiter.api.Assumptions
 import org.openqa.selenium.firefox.FirefoxDriver
 import org.openqa.selenium.htmlunit.HtmlUnitDriver
 import org.openqa.selenium.remote.RemoteWebDriver
@@ -38,7 +38,7 @@ class DriverConfigSpec extends Specification implements 
InlineConfigurationLoade
 
     def setupSpec() {
         CachingDriverFactory.clearCacheAndQuitDriver()
-        Assume.assumeFalse(HeadlessTestSupport.headless)
+        Assumptions.assumeFalse(HeadlessTestSupport.headless)
     }
 
     def "configuring driver using closure"() {
diff --git 
a/internal/test-support/src/main/groovy/geb/fixture/HeadlessTestSupport.groovy 
b/internal/test-support/src/main/groovy/geb/fixture/HeadlessTestSupport.groovy
index 7f41f1df..0af6cea8 100644
--- 
a/internal/test-support/src/main/groovy/geb/fixture/HeadlessTestSupport.groovy
+++ 
b/internal/test-support/src/main/groovy/geb/fixture/HeadlessTestSupport.groovy
@@ -21,7 +21,7 @@ package geb.fixture
 import java.lang.reflect.Constructor
 
 abstract class HeadlessTestSupport {
-    private static boolean headless;
+    private static boolean headless
 
     /**
      * A boolean indicating if we are running in headless mode.
@@ -45,9 +45,9 @@ abstract class HeadlessTestSupport {
 
     static {
         try {
-            final Class jframe = Class.forName("javax.swing.JFrame")
+            final Class jframe = ClassLoader.loadClass('javax.swing.JFrame')
             final Constructor constructor = jframe.getConstructor([String] as 
Class[])
-            constructor.newInstance(["testing"] as String[])
+            constructor.newInstance(['testing'] as String[])
             headless = false
         } catch (Throwable t) {
             // any exception means headless

Reply via email to