summaryrefslogtreecommitdiffstats
path: root/mod/genprocessor/src
diff options
context:
space:
mode:
Diffstat (limited to 'mod/genprocessor/src')
-rw-r--r--mod/genprocessor/src/test/java/sandbox/AppTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/genprocessor/src/test/java/sandbox/AppTest.java b/mod/genprocessor/src/test/java/sandbox/AppTest.java
index 3ce8f1a..dddd0fd 100644
--- a/mod/genprocessor/src/test/java/sandbox/AppTest.java
+++ b/mod/genprocessor/src/test/java/sandbox/AppTest.java
@@ -18,9 +18,13 @@
package sandbox;
import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
import org.junit.Test;
+import org.onap.dcae.genprocessor.CompSpec;
+import org.onap.dcae.genprocessor.Utils;
+
/**
* Unit test for simple App.
*/
@@ -34,4 +38,18 @@ public class AppTest
{
assertTrue( true );
}
+
+ /**
+ * Test Utils
+ */
+ @Test
+ public void testUtils()
+ {
+ new Utils();
+ assertEquals(Utils.formatNameForJavaClass("part1.a-bee"), "Part1ABee");
+ CompSpec cs = new CompSpec();
+ cs.name = "SomeJar";
+ cs.version = "2.0";
+ assertEquals(Utils.formatNameForJar(cs), "SomeJar-2.0");
+ }
}