diff --git a/checkstyle.xml b/checkstyle.xml
new file mode 100644
index 0000000..1cec088
--- /dev/null
+++ b/checkstyle.xml
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 3c5a434..27a1a6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,25 +5,29 @@
4.0.0
BauDas Kundenkarten Verwaltung
+ https://spm.joethei.space/bauDas
de.hs-el.spm
bauDas-kundenkarten
- 1.0-SNAPSHOT
+ 0.1.0-SNAPSHOT
war
+ 1.8
+ checkstyle.xml
UTF-8
-
-
+
+
Johannes Theiner
johannes.theiner@informatik-emden.de
Server Admin
+ Developer
-
-
+
+
YouTrack
@@ -61,8 +65,8 @@
maven-compiler-plugin
3.1
-
- 8
+
+ ${java.version}
@@ -71,12 +75,135 @@
3.0.1
+ org.apache.maven.plugins
maven-surefire-plugin
3.0.0-M1
+
+
+ org.apache.maven.plugins
+ maven-site-plugin
+ 3.7.1
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.0.0
+
+
+ com.puppycrawl.tools
+ checkstyle
+ 8.17
+
+
+
+ ${project.build.sourceEncoding}
+ true
+ true
+ ${checkstyle_file}
+
+
+
+ verify-style
+ process-classes
+
+ check
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-pmd-plugin
+ 3.11.0
+
+ ${java.version}
+ 100
+ ${project.build.sourceEncoding}
+ true
+
+
+
+ verify-optimization
+ process-classes
+
+ check
+ cpd-check
+
+
+
+
+
+
+ com.github.spotbugs
+ spotbugs-maven-plugin
+ 3.1.9
+
+ Max
+ Low
+ false
+
+
+ com.h3xstream.findsecbugs
+ findsecbugs-plugin
+ 1.8.0
+
+
+ com.mebigfatguy.fb-contrib
+ fb-contrib
+ 7.4.3.sb
+
+
+
+
+
+ verify-errors
+ verify
+
+ check
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+
+ ${checkstyle_file}
+
+ 3.0.0
+
+
+
+ checkstyle
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jxr-plugin
+ 2.3
+
+
+ com.github.spotbugs
+ spotbugs-maven-plugin
+ 3.1.9
+
+
+
+
diff --git a/src/main/java/de/hs_el/spm/bauDas/HelloWorld.java b/src/main/java/de/hsel/spm/baudas/HelloWorld.java
similarity index 62%
rename from src/main/java/de/hs_el/spm/bauDas/HelloWorld.java
rename to src/main/java/de/hsel/spm/baudas/HelloWorld.java
index 45df87d..1cca1c8 100644
--- a/src/main/java/de/hs_el/spm/bauDas/HelloWorld.java
+++ b/src/main/java/de/hsel/spm/baudas/HelloWorld.java
@@ -1,4 +1,4 @@
-package de.hs_el.spm.bauDas;
+package de.hsel.spm.baudas;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
@@ -8,18 +8,31 @@ import java.io.IOException;
import java.io.PrintWriter;
/**
+ * Hello World.
+ *
* @author Johannes Theiner
* @version 0.1
* @since 0.1
*/
-@WebServlet(value = "/")
+@WebServlet("/")
public class HelloWorld extends HttpServlet {
+ private static final long serialVersionUID = 156790693L;
+
+ /**
+ * doGet.
+ *
+ * @param req Request
+ * @param resp Response
+ * @throws IOException failed
+ */
@Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
+ protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
+ throws IOException {
+
resp.setContentType("text/html");
- PrintWriter out = resp.getWriter();
+ final PrintWriter out = resp.getWriter();
out.println("");
out.println("");
out.println("Hallo Welt!");
@@ -29,4 +42,4 @@ public class HelloWorld extends HttpServlet {
out.println("");
out.println("");
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/de/hsel/spm/baudas/HelloTest.java b/src/test/java/de/hsel/spm/baudas/HelloTest.java
new file mode 100644
index 0000000..d5cd722
--- /dev/null
+++ b/src/test/java/de/hsel/spm/baudas/HelloTest.java
@@ -0,0 +1,18 @@
+package de.hsel.spm.baudas;
+
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/**
+ * @author Johannes Theiner
+ * @version 0.1
+ * @since 0.1
+ **/
+class HelloTest {
+
+ @Test
+ void hello() {
+ assertEquals(2, 1 + 1);
+ }
+}
\ No newline at end of file