diff options
author | Benjamin, Max (mb388a) <mb388a@us.att.com> | 2018-08-28 09:48:38 -0400 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@us.att.com> | 2018-08-28 09:49:08 -0400 |
commit | 2190bb1f21a4adf77b8618b468c5b41adcb16c51 (patch) | |
tree | cc12c95eb56152f29616158086a7f0cb863bfcbd /common/src/test/java/org/onap | |
parent | eb94991c543a1d9cf3c9b6c4dfca921dedf48da5 (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.java | 8 |
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")); + } } |