From abe6dc223f9d3c2f643142e274a9f3da0cfbf48b Mon Sep 17 00:00:00 2001 From: Jonathan Philip Knoblauch Date: Mon, 18 Apr 2016 12:51:57 +0200 Subject: [PATCH] Created hawkbit-example-ddi-client example maven module Signed-off-by: Jonathan Philip Knoblauch --- examples/hawkbit-example-ddi-client/pom.xml | 26 +++++++++++++ .../org/hawkbit/example/ddi/client/App.java | 13 +++++++ .../hawkbit/example/ddi/client/AppTest.java | 38 +++++++++++++++++++ examples/pom.xml | 8 ++-- 4 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 examples/hawkbit-example-ddi-client/pom.xml create mode 100644 examples/hawkbit-example-ddi-client/src/main/java/org/hawkbit/example/ddi/client/App.java create mode 100644 examples/hawkbit-example-ddi-client/src/test/java/org/hawkbit/example/ddi/client/AppTest.java diff --git a/examples/hawkbit-example-ddi-client/pom.xml b/examples/hawkbit-example-ddi-client/pom.xml new file mode 100644 index 000000000..7630a5a9e --- /dev/null +++ b/examples/hawkbit-example-ddi-client/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + org.eclipse.hawkbit + hawkbit-examples-parent + 0.2.0-SNAPSHOT + + org.eclipse.hawkbit + hawkbit-example-ddi-client + 0.2.0-SNAPSHOT + hawkbit-example-ddi-client + http://maven.apache.org + + UTF-8 + + + + junit + junit + 3.8.1 + test + + + diff --git a/examples/hawkbit-example-ddi-client/src/main/java/org/hawkbit/example/ddi/client/App.java b/examples/hawkbit-example-ddi-client/src/main/java/org/hawkbit/example/ddi/client/App.java new file mode 100644 index 000000000..cd85d3a8b --- /dev/null +++ b/examples/hawkbit-example-ddi-client/src/main/java/org/hawkbit/example/ddi/client/App.java @@ -0,0 +1,13 @@ +package org.hawkbit.example.ddi.client; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/examples/hawkbit-example-ddi-client/src/test/java/org/hawkbit/example/ddi/client/AppTest.java b/examples/hawkbit-example-ddi-client/src/test/java/org/hawkbit/example/ddi/client/AppTest.java new file mode 100644 index 000000000..395886a2d --- /dev/null +++ b/examples/hawkbit-example-ddi-client/src/test/java/org/hawkbit/example/ddi/client/AppTest.java @@ -0,0 +1,38 @@ +package org.hawkbit.example.ddi.client; + +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 ); + } +} diff --git a/examples/pom.xml b/examples/pom.xml index 5f1377123..ae10dac0c 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -1,3 +1,4 @@ + - +--> 4.0.0 @@ -26,6 +25,7 @@ hawkbit-device-simulator hawkbit-example-app hawkbit-mgmt-api-client - + hawkbit-example-ddi-client + \ No newline at end of file