From 0b570e807476c20e2df4bc2ca8adb825df9faa7f Mon Sep 17 00:00:00 2001 From: Patryk Date: Thu, 29 Aug 2024 19:50:29 +0200 Subject: [PATCH] first commit --- pom.xml | 18 ++++++++++++ src/main/java/com/example/App.java | 13 +++++++++ src/test/java/com/example/AppTest.java | 38 ++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/com/example/App.java create mode 100644 src/test/java/com/example/AppTest.java diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..9ad3c62 --- /dev/null +++ b/pom.xml @@ -0,0 +1,18 @@ + + 4.0.0 + com.example + hello-world + jar + 1.0-SNAPSHOT + hello-world + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + + diff --git a/src/main/java/com/example/App.java b/src/main/java/com/example/App.java new file mode 100644 index 0000000..b6bcb1d --- /dev/null +++ b/src/main/java/com/example/App.java @@ -0,0 +1,13 @@ +package com.example; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/test/java/com/example/AppTest.java b/src/test/java/com/example/AppTest.java new file mode 100644 index 0000000..474710c --- /dev/null +++ b/src/test/java/com/example/AppTest.java @@ -0,0 +1,38 @@ +package com.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 ); + } +}