X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=common%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fso%2Fclient%2Faai%2Fentities%2Furi%2FAAISimpleUriFromParentUriTest.java;fp=common%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fso%2Fclient%2Faai%2Fentities%2Furi%2FAAISimpleUriFromParentUriTest.java;h=d26ff8d5073c0fe1c92cd54aa7821652099676c6;hb=f47919f1fe367b612fa9c96d34c59f01a541e882;hp=beb18a389c7815e5bb4433e8d3ca6d516c7cfe89;hpb=54452b80a1cf4d22ef750bc1377f8c1b05431d57;p=so.git diff --git a/common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriFromParentUriTest.java b/common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriFromParentUriTest.java index beb18a389c..d26ff8d507 100644 --- a/common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriFromParentUriTest.java +++ b/common/src/test/java/org/onap/so/client/aai/entities/uri/AAISimpleUriFromParentUriTest.java @@ -21,21 +21,23 @@ package org.onap.so.client.aai.entities.uri; import static org.junit.Assert.assertEquals; - import org.junit.Test; import org.onap.so.client.aai.AAIObjectType; public class AAISimpleUriFromParentUriTest { - - @Test - public void appendChildren() { - - AAIResourceUri parentUri = AAIUriFactory.createResourceUri(AAIObjectType.SERVICE_INSTANCE, "key1", "key2", "key3"); - - AAIUri uri = new AAISimpleUri(parentUri, AAIObjectType.ALLOTTED_RESOURCE, "key4"); - - assertEquals("path appended", "/business/customers/customer/key1/service-subscriptions/service-subscription/key2/service-instances/service-instance/key3/allotted-resources/allotted-resource/key4", uri.build().toString()); - - } + + @Test + public void appendChildren() { + + AAIResourceUri parentUri = + AAIUriFactory.createResourceUri(AAIObjectType.SERVICE_INSTANCE, "key1", "key2", "key3"); + + AAIUri uri = new AAISimpleUri(parentUri, AAIObjectType.ALLOTTED_RESOURCE, "key4"); + + assertEquals("path appended", + "/business/customers/customer/key1/service-subscriptions/service-subscription/key2/service-instances/service-instance/key3/allotted-resources/allotted-resource/key4", + uri.build().toString()); + + } }