diff --git a/pom.xml b/pom.xml index 1822645..b2c542e 100644 --- a/pom.xml +++ b/pom.xml @@ -14,5 +14,30 @@ 11 ${java.version} ${java.version} + 5.9.2 + + + + org.junit.jupiter + junit-jupiter-api + ${junit.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.version} + test + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M7 + + + \ No newline at end of file diff --git a/src/test/java/guru/springframework/JavaHelloWorldTest.java b/src/test/java/guru/springframework/JavaHelloWorldTest.java new file mode 100644 index 0000000..ebcb491 --- /dev/null +++ b/src/test/java/guru/springframework/JavaHelloWorldTest.java @@ -0,0 +1,14 @@ +package guru.springframework; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class JavaHelloWorldTest { + + @Test + void getHello() { + JavaHelloWorld javaHelloWorld = new JavaHelloWorld(); + assertEquals("Hello World", javaHelloWorld.getHello()); + } +} \ No newline at end of file