Skip to content
Snippets Groups Projects
Commit 20f8f8c5 authored by Rob Adams's avatar Rob Adams
Browse files

Remove 'assert' from unit tests

parent e60cbd87
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ public class HubTest extends FloodlightTestCase {
assertTrue(wc1.hasCaptured());
OFMessage m = wc1.getValue();
assert(m.equals(po));
assertEquals(po, m);
}
@Test
......@@ -162,6 +162,6 @@ public class HubTest extends FloodlightTestCase {
assertTrue(wc1.hasCaptured());
OFMessage m = wc1.getValue();
assert(m.equals(po));
assertEquals(po, m);
}
}
......@@ -126,9 +126,9 @@ public class TopologyManagerTest extends FloodlightTestCase {
public void testHARoleChange() throws Exception {
testBasic2();
getMockFloodlightProvider().dispatchRoleChanged(null, Role.SLAVE);
assert(tm.switchPorts.isEmpty());
assert(tm.switchPortLinks.isEmpty());
assert(tm.portBroadcastDomainLinks.isEmpty());
assert(tm.tunnelPorts.isEmpty());
assertTrue(tm.switchPorts.isEmpty());
assertTrue(tm.switchPortLinks.isEmpty());
assertTrue(tm.portBroadcastDomainLinks.isEmpty());
assertTrue(tm.tunnelPorts.isEmpty());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment