summaryrefslogtreecommitdiffstats
path: root/common/src/test/java/org/onap
diff options
context:
space:
mode:
authorBenjamin, Max (mb388a) <mb388a@us.att.com>2018-08-28 09:48:38 -0400
committerBenjamin, Max (mb388a) <mb388a@us.att.com>2018-08-28 09:49:08 -0400
commit2190bb1f21a4adf77b8618b468c5b41adcb16c51 (patch)
treecc12c95eb56152f29616158086a7f0cb863bfcbd /common/src/test/java/org/onap
parenteb94991c543a1d9cf3c9b6c4dfca921dedf48da5 (diff)
added unit test for decoded keys
unit test to demonstrate that uri values are decoded Change-Id: Idd90e02f9c794b7ebf6755a4dbd834fb29be40ad Issue-ID: SO-922 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'common/src/test/java/org/onap')
-rw-r--r--common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriTest.java b/common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriTest.java
index 1b6cc7bf66..fcf054f489 100644
--- a/common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriTest.java
+++ b/common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriTest.java
@@ -75,4 +75,12 @@ public class AAISimpleUriTest {
System.out.println(uri.build());
assertEquals("vserver1", keys.get("vserver-id"));
}
+
+ @Test
+ public void getEncodedKeyTest() {
+ AAIResourceUri uri = AAIUriFactory.createResourceUri(AAIObjectType.SERVICE_INSTANCE, "test1", "my value", "test3");
+ Map<String,String> keys = uri.getURIKeys();
+
+ assertEquals("my value", keys.get("service-type"));
+ }
}