diff options
author | ezhil <ezhrajam@in.ibm.com> | 2020-04-24 20:01:34 +0530 |
---|---|---|
committer | ezhil <ezhrajam@in.ibm.com> | 2020-04-24 20:01:42 +0530 |
commit | cae21e0986043b718d6767f227619cc887e8db9f (patch) | |
tree | a202d997e9c6c9aead8f099044d20358c239dc8f /aai-core/src/test/java | |
parent | 6915f57d07f466a6dd54be693b2af2cec9b8e0c1 (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/test/java')
-rw-r--r-- | aai-core/src/test/java/org/onap/aai/introspection/JSONStrategyTest.java | 10 |
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<>(); |