NX01: Set all unit tests to headless and disable 2 offenders
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 1m33s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 1m33s
This commit is contained in:
parent
ce544764a4
commit
67dd3e4628
4 changed files with 19 additions and 1 deletions
|
|
@ -14,4 +14,4 @@ jobs:
|
|||
- name: Check out
|
||||
uses: actions/checkout@v3
|
||||
- name: Run asserts
|
||||
run: mvn clean test -Djava.awt.headless=true
|
||||
run: mvn clean test
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ import java.io.OutputStream;
|
|||
import java.nio.charset.Charset;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.x4o.xml.X4ODriver;
|
||||
import org.x4o.xml.test.TestDriver;
|
||||
|
|
@ -74,6 +75,7 @@ public class X4OWriterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Disabled("Caused by: java.awt.HeadlessException")
|
||||
public void testWriterSwiXmlOutput() throws Exception {
|
||||
Accelerator3 ac3 = new Accelerator3(false);
|
||||
SwingEngine engine = new SwingEngine(ac3);
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ import javax.swing.JMenu;
|
|||
import javax.swing.JMenuItem;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.x4o.xml.io.X4OReader;
|
||||
|
||||
|
|
@ -41,6 +42,7 @@ import org.x4o.xml.io.X4OReader;
|
|||
public class Accelerator3Test {
|
||||
|
||||
@Test
|
||||
@Disabled("Caused by: java.awt.HeadlessException")
|
||||
public void testSwingMenuAbout() throws Exception {
|
||||
Accelerator3 ac3 = new Accelerator3(false);
|
||||
SwingEngine engine = new SwingEngine(ac3);
|
||||
|
|
|
|||
14
pom.xml
14
pom.xml
|
|
@ -527,6 +527,11 @@
|
|||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>3.2.4</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.5.4</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
|
|
@ -535,6 +540,15 @@
|
|||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<systemPropertyVariables>
|
||||
<java.awt.headless>true</java.awt.headless>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue