summaryrefslogtreecommitdiffstats
path: root/mod/genprocessor/src
diff options
context:
space:
mode:
authorAndrew Gauld <agauld@att.com>2020-01-17 21:32:54 +0000
committerAndrew Gauld <agauld@att.com>2020-01-17 21:34:31 +0000
commit86a040e87585d176dee6f215d5d46a2a74c1366e (patch)
tree762857cc4e15766b923dbda4ea21c48d87106368 /mod/genprocessor/src
parent5fda209b043e1cc1d1502cc8654bb72643868fb3 (diff)
mod/genprocessor code coverage in SONAR
Change-Id: I51bd4efd2db17e35d1b28fed32c448fae209e3ba Issue-ID: DCAEGEN2-1860 Signed-off-by: Andrew Gauld <agauld@att.com>
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");
+ }
}