diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/pom.xml | 8 | ||||
-rw-r--r-- | common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriTest.java | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/common/pom.xml b/common/pom.xml index 18b30a26bf..dccebb216f 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -1,5 +1,5 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<?xml version="1.0"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.onap.so</groupId> @@ -87,7 +87,7 @@ <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> - <version>22.0</version> + </dependency> <dependency> <groupId>org.apache.commons</groupId> @@ -129,7 +129,7 @@ <groupId>org.slf4j</groupId> <artifactId>slf4j-ext</artifactId> </dependency> - + <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> 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")); + } } |