diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..c44f5b2 --- /dev/null +++ b/pom.xml @@ -0,0 +1,22 @@ + + 4.0.0 + com.sample + hello + jar + 1.0-SNAPSHOT + + 11 + 11 + + hello + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + + diff --git a/src/main/java/com/sample/App.java b/src/main/java/com/sample/App.java new file mode 100644 index 0000000..13cfec4 --- /dev/null +++ b/src/main/java/com/sample/App.java @@ -0,0 +1,13 @@ +package com.sample; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/test/java/com/sample/AppTest.java b/src/test/java/com/sample/AppTest.java new file mode 100644 index 0000000..1b8b310 --- /dev/null +++ b/src/test/java/com/sample/AppTest.java @@ -0,0 +1,40 @@ +package com.sample; + +import static junit.framework.Assert.*; +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() + { + assertEquals("correct","Hello", "Hello"); + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +}