commit | 2693bdab3ec7a569a33e634b8e4a3b345e5765e0 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Fri Jan 22 16:08:14 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Jan 26 21:33:28 2016 +0000 |
tree | c4ebda3992cc6d7cae8421d12a0ce6c8c8911a08 | |
parent | 8946177548ff6bba9b1c9350ecfcfcc871de3878 [diff] [blame] |
Add a builder for DefaultLink to hide multiplying constructors Change-Id: Iaf073d07989c398a8f44541ffdb8dd93e5715162
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/phase/CompilingTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/phase/CompilingTest.java index c15ecae..80cc96c 100644 --- a/core/net/src/test/java/org/onosproject/net/intent/impl/phase/CompilingTest.java +++ b/core/net/src/test/java/org/onosproject/net/intent/impl/phase/CompilingTest.java
@@ -70,7 +70,8 @@ private final ConnectPoint cp3 = new ConnectPoint(deviceId("2"), portNumber(1)); private final ConnectPoint cp4 = new ConnectPoint(deviceId("2"), portNumber(2)); - private final List<Link> links = Collections.singletonList(new DefaultLink(pid, cp2, cp4, DIRECT)); + private final List<Link> links = Collections.singletonList( + DefaultLink.builder().providerId(pid).src(cp2).dst(cp4).type(DIRECT).build()); private final Path path = new DefaultPath(pid, links, 10); private PointToPointIntent input;