Skip to content

Instantly share code, notes, and snippets.

@nebulorum
Created April 15, 2015 22:10
Show Gist options
  • Save nebulorum/ff98817c9aec4f032911 to your computer and use it in GitHub Desktop.
Save nebulorum/ff98817c9aec4f032911 to your computer and use it in GitHub Desktop.
An example profile for using headless UISpec4J test using Cacio-TTA Toolkit.
<profile>
<id>ci-headless</id>
<dependencies>
<dependency>
<groupId>net.java.openjdk.cacio</groupId>
<artifactId>cacio-tta</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.awt.headless>false</java.awt.headless>
<awt.toolkit>net.java.openjdk.cacio.ctc.CTCToolkit</awt.toolkit>
<java.awt.graphicsenv>net.java.openjdk.cacio.ctc.CTCGraphicsEnvironment</java.awt.graphicsenv>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment