From 812dea5faf3eb6d067379f1435eced6142f38532 Mon Sep 17 00:00:00 2001 From: student Date: Tue, 13 Feb 2018 10:53:27 -0500 Subject: Create SCL module --- pom.xml | 5 +++-- scl/pom.xml | 26 ++++++++++++++++++++++++++ scl/src/main/java/bjc/App.java | 13 +++++++++++++ scl/src/test/java/bjc/AppTest.java | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 scl/pom.xml create mode 100644 scl/src/main/java/bjc/App.java create mode 100644 scl/src/test/java/bjc/AppTest.java diff --git a/pom.xml b/pom.xml index 0c081bc..bf8e4c4 100644 --- a/pom.xml +++ b/pom.xml @@ -52,5 +52,6 @@ base dice - - + scl + + \ No newline at end of file diff --git a/scl/pom.xml b/scl/pom.xml new file mode 100644 index 0000000..a4e9e4c --- /dev/null +++ b/scl/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + bjc + dicelang-parent + 1.0.0 + + bjc + dicelang-scl + 1.0-SNAPSHOT + scl + http://maven.apache.org + + UTF-8 + + + + junit + junit + 3.8.1 + test + + + diff --git a/scl/src/main/java/bjc/App.java b/scl/src/main/java/bjc/App.java new file mode 100644 index 0000000..ff1c4f9 --- /dev/null +++ b/scl/src/main/java/bjc/App.java @@ -0,0 +1,13 @@ +package bjc; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/scl/src/test/java/bjc/AppTest.java b/scl/src/test/java/bjc/AppTest.java new file mode 100644 index 0000000..8d8ca91 --- /dev/null +++ b/scl/src/test/java/bjc/AppTest.java @@ -0,0 +1,38 @@ +package bjc; + +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