From 52b8a818a85b458f7049d5210982b5c748a665bc Mon Sep 17 00:00:00 2001 From: Lukas Reichwein Date: Wed, 3 Jul 2019 10:59:18 +0200 Subject: [PATCH] fixed project setup Junit Tests can now run automaticly and removed some unused imports. --- pom.xml | 2 +- src/main/java/com/ugsbo/gui/StartApplication.java | 8 ++++++++ src/main/java/com/ugsbo/matrixcalc/MatrixCalcMath.java | 2 +- src/main/java/module-info.java | 9 --------- .../java/com/ugsbo/matrixcalc/MatrixTransposeTest.java | 2 -- 5 files changed, 10 insertions(+), 13 deletions(-) create mode 100644 src/main/java/com/ugsbo/gui/StartApplication.java delete mode 100644 src/main/java/module-info.java diff --git a/pom.xml b/pom.xml index 35fb9b7..afa24d1 100644 --- a/pom.xml +++ b/pom.xml @@ -99,7 +99,7 @@ 12 UGSBO launcher - UGSBO/com.ugsbo.gui.MainApp + UGSBO/com.ugsbo.gui.StartApplication diff --git a/src/main/java/com/ugsbo/gui/StartApplication.java b/src/main/java/com/ugsbo/gui/StartApplication.java new file mode 100644 index 0000000..38cccea --- /dev/null +++ b/src/main/java/com/ugsbo/gui/StartApplication.java @@ -0,0 +1,8 @@ +package com.ugsbo.gui; + +public class StartApplication { + + public static void main(String[] args) { + MainApp.main(args); + } +} \ No newline at end of file diff --git a/src/main/java/com/ugsbo/matrixcalc/MatrixCalcMath.java b/src/main/java/com/ugsbo/matrixcalc/MatrixCalcMath.java index 20af826..662a87d 100644 --- a/src/main/java/com/ugsbo/matrixcalc/MatrixCalcMath.java +++ b/src/main/java/com/ugsbo/matrixcalc/MatrixCalcMath.java @@ -1,6 +1,6 @@ package com.ugsbo.matrixcalc; -import java.io.IOException; +//import java.io.IOException; /** * Contains all basic matrix math calculations. diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java deleted file mode 100644 index b859978..0000000 --- a/src/main/java/module-info.java +++ /dev/null @@ -1,9 +0,0 @@ -module UGSBO { - requires javafx.controls; - requires javafx.fxml; - - opens com.ugsbo.matrixcalc to javafx.fxml; - opens com.ugsbo.gui to javafx.fxml; - - exports com.ugsbo.gui; -} \ No newline at end of file diff --git a/src/test/java/com/ugsbo/matrixcalc/MatrixTransposeTest.java b/src/test/java/com/ugsbo/matrixcalc/MatrixTransposeTest.java index 437ff1c..c6a9918 100644 --- a/src/test/java/com/ugsbo/matrixcalc/MatrixTransposeTest.java +++ b/src/test/java/com/ugsbo/matrixcalc/MatrixTransposeTest.java @@ -1,8 +1,6 @@ package com.ugsbo.matrixcalc; import static org.junit.Assert.assertArrayEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; import org.junit.Test;