diff --git a/test/pom.xml b/test/pom.xml deleted file mode 100644 index 3d7ce59cd35d..000000000000 --- a/test/pom.xml +++ /dev/null @@ -1,25 +0,0 @@ - - 4.0.0 - - org.example - test - 1.0-SNAPSHOT - jar - - test - http://maven.apache.org - - - UTF-8 - - - - - junit - junit - 3.8.1 - test - - - diff --git a/test/src/main/java/org/example/App.java b/test/src/main/java/org/example/App.java deleted file mode 100644 index 5f21d2e226b4..000000000000 --- a/test/src/main/java/org/example/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.example; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } -} diff --git a/test/src/test/java/org/example/AppTest.java b/test/src/test/java/org/example/AppTest.java deleted file mode 100644 index d5f435df0340..000000000000 --- a/test/src/test/java/org/example/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.example; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * 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 ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/test/src/test/java/org/example/AutoCloseTest.java b/test/src/test/java/org/example/AutoCloseTest.java deleted file mode 100644 index ac596998b3bd..000000000000 --- a/test/src/test/java/org/example/AutoCloseTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.example; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.AutoClose; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.AutoCloseExtension; -import org.junit.jupiter.api.extension.ExtendWith; - -import java.io.Closeable; -import java.io.IOException; - -import static org.junit.jupiter.api.Assertions.assertTrue; - -@ExtendWith(AutoCloseExtension.class) -class AutoCloseTest { - @AutoClose - private Closeable resource = createResource(); - - @Test - void testResourceIsClosed() throws IOException { - Assertions.assertTrue(resource instanceof Closeable); - } - - private Closeable createResource() { - return new Closeable() { - @Override - public void close() throws IOException { - System.out.println("Closing resource..."); - } - }; - } -}