From 72b456a53efe928f9a1c1ac946f341c230fb0697 Mon Sep 17 00:00:00 2001
From: Lennart Eichhorn <lennart@madmanfred.com>
Date: Fri, 29 May 2020 19:38:29 +0200
Subject: [PATCH] Added jUnit5 to project. Wrote an example test.

---
 .idea/GeneticAlgorithms.iml      |  2 ++
 pom.xml                          | 17 +++++++++++++++++
 src/test/java/EvaluatorTest.java |  9 +++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 .idea/GeneticAlgorithms.iml
 create mode 100644 src/test/java/EvaluatorTest.java

diff --git a/.idea/GeneticAlgorithms.iml b/.idea/GeneticAlgorithms.iml
new file mode 100644
index 0000000..78b2cc5
--- /dev/null
+++ b/.idea/GeneticAlgorithms.iml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4" />
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 2424fa1..7ac4ce7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,6 +18,11 @@
                     <target>1.8</target>
                 </configuration>
             </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <version>2.22.1</version>
+                </plugin>
         </plugins>
     </build>
 
@@ -39,5 +44,17 @@
             <artifactId>jcodec-javase</artifactId>
             <version>0.2.2</version>
         </dependency>
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter-api</artifactId>
+            <version>5.4.2</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter-engine</artifactId>
+            <version>5.4.2</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 </project>
\ No newline at end of file
diff --git a/src/test/java/EvaluatorTest.java b/src/test/java/EvaluatorTest.java
new file mode 100644
index 0000000..8906d31
--- /dev/null
+++ b/src/test/java/EvaluatorTest.java
@@ -0,0 +1,9 @@
+import org.junit.jupiter.api.Test;
+
+class EvaluatorTest {
+
+  @Test
+  void justAnExample() {
+
+  }
+}
\ No newline at end of file
-- 
GitLab