diff --git a/pom.xml b/pom.xml index 3688725..c7532f0 100644 --- a/pom.xml +++ b/pom.xml @@ -101,6 +101,12 @@ + + org.junit.jupiter + junit-jupiter + 5.10.0 + test + diff --git a/src/test/java/com/dropwizard/employee/AppTest.java b/src/test/java/com/dropwizard/employee/AppTest.java index ac98328..e374075 100644 --- a/src/test/java/com/dropwizard/employee/AppTest.java +++ b/src/test/java/com/dropwizard/employee/AppTest.java @@ -1,38 +1,12 @@ package com.dropwizard.employee; -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertTrue; -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } +class AppTest { - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); + @Test + void testApp() { + assertTrue(true); } }