Skip to content
Snippets Groups Projects
Commit e07ecae9 authored by jkhutch3's avatar jkhutch3
Browse files

Fixed my delete test case by making sure the message written was correct....

Fixed my delete test case by making sure the message written was correct. (This will be expanded upon in the future).
parent 98b00151
No related branches found
No related tags found
No related merge requests found
......@@ -960,15 +960,14 @@ public class ForwardingTest extends FloodlightTestCase {
assertTrue(wc1.hasCaptured());
assertTrue(wc2.hasCaptured());
/*Masked<U64> masked_cookie = Masked.of( AppCookie.makeCookie(forwarding.FORWARDING_APP_ID, (int)4294967295L),
Masked<U64> masked_cookie = Masked.of( AppCookie.makeCookie(forwarding.FORWARDING_APP_ID, (int)4294967295L),
AppCookie.getAppFieldMask().or(U64.of(0xffffffffL)));
Set<OFMessage> msgs_test = new HashSet<OFMessage>();
msgs_test.add( factory.buildFlowDelete()
.setCookie(masked_cookie.getValue())
.setCookieMask(masked_cookie.getMask())
.build());
expect(sw1.write(msgs_test)).once();
expect(sw2.write(msgs_test)).once();*/
assertTrue(OFMessageUtils.equalsIgnoreXid((OFMessage)wc1.getValue().toArray()[0], (OFMessage)msgs_test.toArray()[0]));
}
}
\ No newline at end of file
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