From 2190bb1f21a4adf77b8618b468c5b41adcb16c51 Mon Sep 17 00:00:00 2001 From: "Benjamin, Max (mb388a)" Date: Tue, 28 Aug 2018 09:48:38 -0400 Subject: 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) --- .../org/onap/so/client/aai/entities/uri/AAISimpleUriTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/src') 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 keys = uri.getURIKeys(); + + assertEquals("my value", keys.get("service-type")); + } } -- cgit 1.2.3-korg