Upgrade Network model from 2.1 to 4.1
[transportpce.git] / pce / src / test / java / org / opendaylight / transportpce / pce / PceManyTests.java
index ef1e5d41910e091b40fb0b38c3bdb349d6588b4a..c531c69b3d626a1d5061620df082c48bd18524f0 100644 (file)
@@ -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);
         }
     }