summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorRob Daugherty <rd472p@att.com>2018-08-28 20:44:09 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-28 20:44:09 +0000
commit8f146614a02c5013b2c7e2bbe4b3471f9ae74bd6 (patch)
tree696b6172fd0457e6f83d08583974f80885a62437 /common
parenta9fe9eb6ed407d657536ee98d065e3092b304c07 (diff)
parent2190bb1f21a4adf77b8618b468c5b41adcb16c51 (diff)
Merge "added unit test for decoded keys"
Diffstat (limited to 'common')
-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"));
+ }
}