commit | 3e3ec5f786161086ab0b2680a611f1c73682cda7 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Tue Mar 17 17:00:38 2015 -0700 |
committer | Brian O'Connor <bocon@onlab.us> | Wed Mar 18 22:17:54 2015 +0000 |
tree | 9920e7f6332d525d3a84b8f9cf631e2b1d5598d5 | |
parent | 84ca6e751e87dd776141773f40abe3945a367856 [diff] [blame] |
[Cardinal] Add builders for Intents and remove extra constructors. Starting with PointToPoint intent to see how it looks Change-Id: I5366a05d657ceaad18c03b95cd71f5d1107200e2
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/phase/WithdrawCoordinatingTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/phase/WithdrawCoordinatingTest.java index f5dbf58..19c3f6f 100644 --- a/core/net/src/test/java/org/onosproject/net/intent/impl/phase/WithdrawCoordinatingTest.java +++ b/core/net/src/test/java/org/onosproject/net/intent/impl/phase/WithdrawCoordinatingTest.java
@@ -92,7 +92,13 @@ Intent.bindIdGenerator(idGenerator); // Intent creation should be placed after binding an ID generator - input = new PointToPointIntent(appId, selector, treatment, cp1, cp3); + input = PointToPointIntent.builder() + .appId(appId) + .selector(selector) + .treatment(treatment) + .ingressPoint(cp1) + .egressPoint(cp3) + .build(); compiled = new PathIntent(appId, selector, treatment, path); }