diff options
author | William Reehil <william.reehil@att.com> | 2020-08-05 17:20:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-05 17:20:04 +0000 |
commit | 464ae61b657277de7bb1ec7edbfc1247b220740f (patch) | |
tree | feb7974a640d088f471afdfa28c9f20cec7f8c18 | |
parent | 64f7a40ebff7c1db222a089fffbcf6698fe6f21e (diff) | |
parent | cae21e0986043b718d6767f227619cc887e8db9f (diff) |
Merge "Junit testcase for JSONStrategy"
-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<>(); |