From cb9b235a59a2e136f3b850966a8820dee2f90969 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Wed, 25 Oct 2017 12:22:56 -0300 Subject: Start splitting dice to a new module --- dice/src/main/java/bjc/dicelang/App.java | 13 ++++++++++ dice/src/test/java/bjc/dicelang/AppTest.java | 38 ++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 dice/src/main/java/bjc/dicelang/App.java create mode 100644 dice/src/test/java/bjc/dicelang/AppTest.java (limited to 'dice/src') diff --git a/dice/src/main/java/bjc/dicelang/App.java b/dice/src/main/java/bjc/dicelang/App.java new file mode 100644 index 0000000..694bd75 --- /dev/null +++ b/dice/src/main/java/bjc/dicelang/App.java @@ -0,0 +1,13 @@ +package bjc.dicelang; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/dice/src/test/java/bjc/dicelang/AppTest.java b/dice/src/test/java/bjc/dicelang/AppTest.java new file mode 100644 index 0000000..6ffe98a --- /dev/null +++ b/dice/src/test/java/bjc/dicelang/AppTest.java @@ -0,0 +1,38 @@ +package bjc.dicelang; + +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 ); + } +} -- cgit v1.2.3