From d2280d000c84f1e595e4dec435ae6c1e6c245367 Mon Sep 17 00:00:00 2001 From: Matthew McCullough Date: Tue, 24 Jul 2012 22:07:55 -0700 Subject: [PATCH] Adding maven build script --- .gitignore | 1 + pom.xml | 18 +++++++++ src/main/java/com/ambientideas/App.java | 17 ++++++++ src/test/java/com/ambientideas/AppTest.java | 43 +++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/com/ambientideas/App.java create mode 100644 src/test/java/com/ambientideas/AppTest.java diff --git a/.gitignore b/.gitignore index 6a03ed1..7c82083 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.log output/ build/ +target/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..ee791be --- /dev/null +++ b/pom.xml @@ -0,0 +1,18 @@ + + 4.0.0 + com.ambientideas + egitdemo + jar + 1.0-SNAPSHOT + egitdemo + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + + diff --git a/src/main/java/com/ambientideas/App.java b/src/main/java/com/ambientideas/App.java new file mode 100644 index 0000000..f13d52a --- /dev/null +++ b/src/main/java/com/ambientideas/App.java @@ -0,0 +1,17 @@ +package com.ambientideas; + +/** + * Hello again + * Hello world! + * Hello + */ +public class App +{ + public static void main( String[] args ) + { + //Comment + System.out.println( "Hello World!" ); + } +} + +//foo \ No newline at end of file diff --git a/src/test/java/com/ambientideas/AppTest.java b/src/test/java/com/ambientideas/AppTest.java new file mode 100644 index 0000000..c1ea083 --- /dev/null +++ b/src/test/java/com/ambientideas/AppTest.java @@ -0,0 +1,43 @@ +package com.ambientideas; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +//Pending comments + +//Some comments on the master branch +//Added some comments on the branch for the egit demo + +/** + * 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 ); + } +}