X-Git-Url: https://gerrit.onap.org/r/gitweb?p=sdnc%2Fnorthbound.git;a=blobdiff_plain;f=generic-resource-api%2Fprovider%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fsdnc%2Fnorthbound%2FGetpathsegmentTopologyOperationRPCTest.java;fp=generic-resource-api%2Fprovider%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fsdnc%2Fnorthbound%2FGetpathsegmentTopologyOperationRPCTest.java;h=f2a92c04e8ec76d1f75fc7074c74c82639931d66;hp=06da74c6634d1f5313a631c7143bf8d25e5ea94e;hb=219b28ed3c3ee23f10d67c9c50583a8bd5a84f3a;hpb=2b1dc5b10650ed62f71d4b84ef662b59ed663fc1 diff --git a/generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/GetpathsegmentTopologyOperationRPCTest.java b/generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/GetpathsegmentTopologyOperationRPCTest.java index 06da74c6..f2a92c04 100644 --- a/generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/GetpathsegmentTopologyOperationRPCTest.java +++ b/generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/GetpathsegmentTopologyOperationRPCTest.java @@ -27,7 +27,7 @@ public class GetpathsegmentTopologyOperationRPCTest extends GenericResourceApiPr @Test public void should_fail_when_invalid_vnf_topology() throws Exception { - GetpathsegmentTopologyOperationInput input = build(GetpathsegmentTopologyOperationInput()); + GetpathsegmentTopologyOperationInput input = GetpathsegmentTopologyOperationInput().build(); GetpathsegmentTopologyOperationOutput output = exec(genericResourceApiProvider::getpathsegmentTopologyOperation, input, RpcResult::getResult); @@ -40,8 +40,8 @@ public class GetpathsegmentTopologyOperationRPCTest extends GenericResourceApiPr @Test public void should_fail_when_valid_vnf_topology() throws Exception { - GetpathsegmentTopologyOperationInput input = build(GetpathsegmentTopologyOperationInput() - .setServiceInformation(new ServiceInformationBuilder().setServiceInstanceId("ServiceInstanceID").build())); + GetpathsegmentTopologyOperationInput input = GetpathsegmentTopologyOperationInput() + .setServiceInformation(new ServiceInformationBuilder().setServiceInstanceId("ServiceInstanceID").build()).build(); GetpathsegmentTopologyOperationOutput output = exec(genericResourceApiProvider::getpathsegmentTopologyOperation, input, RpcResult::getResult); @@ -54,9 +54,9 @@ public class GetpathsegmentTopologyOperationRPCTest extends GenericResourceApiPr @Test public void should_fail_when_valid_serice_excep_vnf_topology() throws Exception { - GetpathsegmentTopologyOperationInput input = build(GetpathsegmentTopologyOperationInput() + GetpathsegmentTopologyOperationInput input = GetpathsegmentTopologyOperationInput() .setServiceInformation(new ServiceInformationBuilder().setServiceInstanceId("ServiceInstanceID") - .setOnapModelInformation(new OnapModelInformationBuilder().setModelUuid("moduleUUID").build()).build())); + .setOnapModelInformation(new OnapModelInformationBuilder().setModelUuid("moduleUUID").build()).build()).build(); GetpathsegmentTopologyOperationOutput output = exec(genericResourceApiProvider::getpathsegmentTopologyOperation, input, RpcResult::getResult);