Skip to content

Commit

Permalink
tweak actions for CI debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
paulk-asert committed Dec 19, 2024
1 parent ba985f0 commit 3ab7b74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 3ab7b74

Please sign in to comment.