commit | 81134664295600a1c57e38ee3bbd529818fde543 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Thu Jun 25 17:23:33 2015 -0400 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Jun 25 22:24:01 2015 +0000 |
tree | 26164dfaa869a393bb17f8877e5bd5717040e3ee | |
parent | 8a524718cb980064538cc89eee46c122d208e338 [diff] [blame] |
Fixing FlowRule priority in intent compilers Change-Id: I13998e88d2a116017e87c019f4829101db6c6b6b
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/OpticalPathIntentCompilerTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/OpticalPathIntentCompilerTest.java index b773f0f..2f40b37 100644 --- a/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/OpticalPathIntentCompilerTest.java +++ b/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/OpticalPathIntentCompilerTest.java
@@ -50,6 +50,7 @@ import static org.easymock.EasyMock.replay; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.hasSize; +import static org.junit.Assert.assertEquals; import static org.onosproject.net.Link.Type.DIRECT; import static org.onosproject.net.NetTestTools.PID; import static org.onosproject.net.NetTestTools.connectPoint; @@ -135,7 +136,12 @@ .findFirst() .get(); + rules.forEach(rule -> assertEquals("FlowRule priority is incorrect", + intent.priority(), rule.priority())); + sut.deactivate(); } + //TODO test bidirectional optical paths and verify rules + }