From cae21e0986043b718d6767f227619cc887e8db9f Mon Sep 17 00:00:00 2001 From: ezhil Date: Fri, 24 Apr 2020 20:01:34 +0530 Subject: Junit testcase for JSONStrategy Issue-ID: AAF-1120 Change-Id: I437501322e7cdcc4117add39349ea9696c90ad71 Signed-off-by: ezhil --- .../test/java/org/onap/aai/introspection/JSONStrategyTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'aai-core/src') 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 expected = new HashSet<>(); -- cgit 1.2.3-korg