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;
* 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 {
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);
}
}