X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=pce%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fpce%2FPceManyTests.java;h=c531c69b3d626a1d5061620df082c48bd18524f0;hb=e9ff01802d87203416f6af280c0590c22ed75538;hp=ef1e5d41910e091b40fb0b38c3bdb349d6588b4a;hpb=f1333ba85fbbe086ab540d759a3b6a898c52a135;p=transportpce.git diff --git a/pce/src/test/java/org/opendaylight/transportpce/pce/PceManyTests.java b/pce/src/test/java/org/opendaylight/transportpce/pce/PceManyTests.java index ef1e5d419..c531c69b3 100644 --- a/pce/src/test/java/org/opendaylight/transportpce/pce/PceManyTests.java +++ b/pce/src/test/java/org/opendaylight/transportpce/pce/PceManyTests.java @@ -23,8 +23,8 @@ import org.opendaylight.transportpce.pce.utils.PceTestUtils; import org.opendaylight.transportpce.renderer.NetworkModelWavelengthService; import org.opendaylight.transportpce.renderer.NetworkModelWavelengthServiceImpl; import org.opendaylight.transportpce.test.AbstractTest; -import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev170426.PathComputationRequestInput; -import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev170426.PathComputationRequestOutput; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.PathComputationRequestInput; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev171017.PathComputationRequestOutput; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -47,6 +47,8 @@ public class PceManyTests extends AbstractTest { * expected path computation result * @param topologyDataPath * path to topology data file to be used for DataStore population + * + * @throws Exception exception throws by the function */ public PceManyTests(PathComputationRequestInput input, PathComputationRequestOutput expectedOutput, String topologyDataPath) throws Exception { @@ -75,12 +77,12 @@ public class PceManyTests extends AbstractTest { PathComputationService pathComputationService = new PathComputationServiceImpl(getDataBroker(), notificationPublishService); - PathComputationRequestOutput output = pathComputationService.pathComputationRequest(input); + PathComputationRequestOutput output = pathComputationService.pathComputationRequest(input).get(); PceTestUtils.checkConfigurationResponse(output, expectedOutput); if (ResponseCodes.RESPONSE_OK.equals(output.getConfigurationResponseCommon().getResponseCode())) { - networkModelWavelengthService.useWavelengths(output.getResponseParameters().getPathDescription()); + //networkModelWavelengthService.useWavelengths(output.getResponseParameters().getPathDescription()); PceTestUtils.checkCalculatedPath(output, expectedOutput); } }