Skip to content
Snippets Groups Projects
Commit c0116e2c authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Removed assignment to a variable that's not used. Unit tests would still pass.

parent 295c4a99
No related branches found
No related tags found
No related merge requests found
......@@ -27,27 +27,27 @@ public class MACAddressTest {
@Test(expected=NumberFormatException.class)
public void testIllegalFormat() {
MACAddress address = MACAddress.valueOf("0T:00:01:02:03:04");
MACAddress.valueOf("0T:00:01:02:03:04");
}
@Test(expected=IllegalArgumentException.class)
public void testLongStringFields() {
MACAddress address = MACAddress.valueOf("00:01:02:03:04:05:06");
MACAddress.valueOf("00:01:02:03:04:05:06");
}
@Test(expected=IllegalArgumentException.class)
public void testShortStringFields() {
MACAddress address = MACAddress.valueOf("00:01:02:03:04");
MACAddress.valueOf("00:01:02:03:04");
}
@Test(expected=IllegalArgumentException.class)
public void testLongByteFields() {
MACAddress address = MACAddress.valueOf(new byte[]{0x01, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06});
MACAddress.valueOf(new byte[]{0x01, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06});
}
@Test(expected=IllegalArgumentException.class)
public void testShortByteField() {
MACAddress address = MACAddress.valueOf(new byte[]{0x01, 0x01, 0x02, 0x03, 0x04});
MACAddress.valueOf(new byte[]{0x01, 0x01, 0x02, 0x03, 0x04});
}
// Test data is imported from net.floodlightcontroller.packet.EthernetTest
......
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