package de.bmoth.app;

/**
 * Created by krings on 21.05.17.
 */
public class HeadlessUITest {
}

@@ -20,78 +20,676 @@
 p;%0A%0A
-/**%0A * Created by krings on 21.05.17.%0A */%0Apublic class HeadlessUITest %7B
+import org.junit.BeforeClass;%0Aimport org.testfx.framework.junit.ApplicationTest;%0A%0Aimport static org.testfx.api.FxToolkit.registerPrimaryStage;%0A%0Apublic abstract class HeadlessUITest extends ApplicationTest %7B%0A    @BeforeClass%0A    public static void setupHeadlessIfRequested() throws Exception %7B%0A        if (Boolean.getBoolean(%22headless%22)) %7B%0A            System.setProperty(%22testfx.robot%22, %22glass%22);%0A            System.setProperty(%22testfx.headless%22, %22true%22);%0A            System.setProperty(%22prism.order%22, %22sw%22);%0A            System.setProperty(%22prism.text%22, %22t2k%22);%0A            System.setProperty(%22java.awt.headless%22, %22true%22);%0A        %7D%0A        registerPrimaryStage();%0A    %7D
 %0A%7D%0A

add base class for headless ui tests