commit | d13a37bf3c972defe0ab7eabe539c3430f1dc213 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Fri Jun 12 11:55:17 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Jun 16 17:03:13 2015 +0000 |
tree | 7b764ef57fb3dc9d7130ebd2b35e93094954242c | |
parent | 93d944c2245255b1fbd31e1cead11430f9ad1e3d [diff] [blame] |
Remove deprecated Flow Rule constructors Change-Id: I2a078cbfbeb9db4a04ef1c59acde2fb45672a3cf
diff --git a/core/net/src/test/java/org/onosproject/net/flow/impl/FlowRuleManagerTest.java b/core/net/src/test/java/org/onosproject/net/flow/impl/FlowRuleManagerTest.java index 5097bb8..520cb8c 100644 --- a/core/net/src/test/java/org/onosproject/net/flow/impl/FlowRuleManagerTest.java +++ b/core/net/src/test/java/org/onosproject/net/flow/impl/FlowRuleManagerTest.java
@@ -144,7 +144,14 @@ private FlowRule flowRule(int tsval, int trval) { TestSelector ts = new TestSelector(tsval); TestTreatment tr = new TestTreatment(trval); - return new DefaultFlowRule(DID, ts, tr, 10, appId, TIMEOUT, false); + return DefaultFlowRule.builder() + .forDevice(DID) + .withSelector(ts) + .withTreatment(tr) + .withPriority(10) + .fromApp(appId) + .makeTemporary(TIMEOUT) + .build(); }