commit | a7cf8c8f554264390ce2a156593f99e24d6954fc | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Thu Feb 08 15:07:06 2018 -0800 |
committer | Yuta HIGUCHI <y-higuchi@opennetworking.org> | Fri Feb 09 17:51:28 2018 +0000 |
tree | e338a75c9e39b455d5e452fd67f62ffb5942530b | |
parent | 97f9d4c49b6e1670182e0e3bbb1223f56d0996ef [diff] [blame] |
Remove deprecated DefaultPath constructor with a scalar cost Change-Id: Ifc4104cff773c9c692cc108fda02ce44bc6c2870
diff --git a/apps/optical-model/src/test/java/org/onosproject/net/optical/intent/impl/compiler/OpticalOduIntentCompilerTest.java b/apps/optical-model/src/test/java/org/onosproject/net/optical/intent/impl/compiler/OpticalOduIntentCompilerTest.java index 1ae85a7..46c408f 100644 --- a/apps/optical-model/src/test/java/org/onosproject/net/optical/intent/impl/compiler/OpticalOduIntentCompilerTest.java +++ b/apps/optical-model/src/test/java/org/onosproject/net/optical/intent/impl/compiler/OpticalOduIntentCompilerTest.java
@@ -19,6 +19,7 @@ import com.google.common.collect.Sets; import org.junit.Before; import org.junit.Test; +import org.onlab.graph.ScalarWeight; import org.onlab.packet.ChassisId; import org.onosproject.TestApplicationId; import org.onosproject.core.ApplicationId; @@ -161,7 +162,7 @@ DefaultLink.builder().providerId(PID).src(d1p2).dst(d2p1).type(OPTICAL).build(), DefaultLink.builder().providerId(PID).src(d2p2).dst(d3p1).type(OPTICAL).build() ); - private final Path path = new DefaultPath(PID, links, 3); + private final Path path = new DefaultPath(PID, links, ScalarWeight.toWeight(3)); private OpticalOduIntent intent;