diff --git a/pom.xml b/pom.xml index c44f5b2..e3e7a87 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ junit junit - 3.8.1 + 4.8.1 test diff --git a/src/test/java/com/sample/AppTest.java b/src/test/java/com/sample/AppTest.java index 2004b83..b5c5b37 100644 --- a/src/test/java/com/sample/AppTest.java +++ b/src/test/java/com/sample/AppTest.java @@ -1,9 +1,9 @@ package com.sample; -import static junit.framework.Assert.*; -import junit.framework.Test; +import org.junit.Test; import junit.framework.TestCase; import junit.framework.TestSuite; +import static junit.framework.Assert.*; /** * Unit test for simple App. @@ -22,20 +22,12 @@ } /** - * @return the suite of tests being tested + * Rigourous Test :-) */ - public static Test suite() + @Test + public void testApp() { assertEquals("correct","Hello", "Hello"); // OK //assertEquals("correct","Hello", "hello"); // NG - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); } }