Mercurial > hg > test-repo
changeset 14:3417db828923
adding sample maven project
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 15 Jun 2008 08:28:04 +0200 |
parents | 8ed422ce2c50 |
children | b9bdd9dce402 |
files | sample-maven-project/pom.xml sample-maven-project/src/main/java/de/iobjects/test/App.java sample-maven-project/src/test/java/de/iobjects/test/AppTest.java |
diffstat | 3 files changed, 69 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample-maven-project/pom.xml Sun Jun 15 08:28:04 2008 +0200 @@ -0,0 +1,18 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>de.iobjects.test</groupId> + <artifactId>sample-maven-project</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>sample-maven-project</name> + <url>http://maven.apache.org</url> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> +</project>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample-maven-project/src/main/java/de/iobjects/test/App.java Sun Jun 15 08:28:04 2008 +0200 @@ -0,0 +1,13 @@ +package de.iobjects.test; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample-maven-project/src/test/java/de/iobjects/test/AppTest.java Sun Jun 15 08:28:04 2008 +0200 @@ -0,0 +1,38 @@ +package de.iobjects.test; + +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 ); + } +}