Updating MockFlowRuleService with new semantics
Change-Id: I0a373e6cb25728ca48736902feedc3ed8869fa44
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/IntentManagerTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/IntentManagerTest.java
index 897d292..c55c3e8 100644
--- a/core/net/src/test/java/org/onosproject/net/intent/impl/IntentManagerTest.java
+++ b/core/net/src/test/java/org/onosproject/net/intent/impl/IntentManagerTest.java
@@ -396,14 +396,14 @@
@Test
public void errorIntentInstallFromFlows() {
final Long id = MockIntent.nextId();
- flowRuleService.setFuture(false, 1);
+ flowRuleService.setFuture(false);
MockIntent intent = new MockIntent(id);
listener.setLatch(1, Type.FAILED);
listener.setLatch(1, Type.INSTALL_REQ);
service.submit(intent);
listener.await(Type.INSTALL_REQ);
delay(10); // need to make sure we have some failed futures returned first
- flowRuleService.setFuture(true, 0);
+ flowRuleService.setFuture(true);
listener.await(Type.FAILED);
}
@@ -429,7 +429,7 @@
@Test
public void errorIntentInstallNeverTrue() {
final Long id = MockIntent.nextId();
- flowRuleService.setFuture(false, 1);
+ flowRuleService.setFuture(false);
MockIntent intent = new MockIntent(id);
listener.setLatch(1, Type.WITHDRAWN);
listener.setLatch(1, Type.INSTALL_REQ);
@@ -437,7 +437,7 @@
listener.await(Type.INSTALL_REQ);
// The delay here forces the retry loop in the intent manager to time out
delay(100);
- flowRuleService.setFuture(false, 1);
+ flowRuleService.setFuture(false);
service.withdraw(intent);
listener.await(Type.WITHDRAWN);
}