summaryrefslogtreecommitdiffstats
path: root/aai-core/src
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2020-04-24 20:01:34 +0530
committerezhil <ezhrajam@in.ibm.com>2020-04-24 20:01:42 +0530
commitcae21e0986043b718d6767f227619cc887e8db9f (patch)
treea202d997e9c6c9aead8f099044d20358c239dc8f /aai-core/src
parent6915f57d07f466a6dd54be693b2af2cec9b8e0c1 (diff)
Junit testcase for JSONStrategy
Issue-ID: AAF-1120 Change-Id: I437501322e7cdcc4117add39349ea9696c90ad71 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'aai-core/src')
-rw-r--r--aai-core/src/test/java/org/onap/aai/introspection/JSONStrategyTest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/aai-core/src/test/java/org/onap/aai/introspection/JSONStrategyTest.java b/aai-core/src/test/java/org/onap/aai/introspection/JSONStrategyTest.java
index b684e3fa..7b15e8ca 100644
--- a/aai-core/src/test/java/org/onap/aai/introspection/JSONStrategyTest.java
+++ b/aai-core/src/test/java/org/onap/aai/introspection/JSONStrategyTest.java
@@ -67,8 +67,16 @@ public class JSONStrategyTest extends AAISetup {
Assert.assertEquals("value1", jsonStrategy.getValue("hostname"));
Assert.assertEquals(4, jsonStrategy.getValue("numberofCpus"));
Assert.assertEquals(1024, jsonStrategy.getValue("ramInMegabytes"));
- }
+ }
+ @Test
+ public void testGetMethods(){
+ Assert.assertEquals("pserver-type",jsonStrategy.getName());
+ Assert.assertEquals("pserver-type",jsonStrategy.getDbName());
+ Assert.assertEquals("",jsonStrategy.getGenericURI());
+ Assert.assertNull(jsonStrategy.getChildName());
+ Assert.assertEquals("key",jsonStrategy.preProcessKey("key"));
+ }
@Test
public void getPropertiesTest() {
Set<String> expected = new HashSet<>();