fail("Expected IllegalStateException not thrown");
} catch (IllegalStateException e) {
//expected
}
OFDescriptionStatistics desc = createOFDescriptionStatistics();
desc.setDatapathDescription(null);
try {
controller.getOFSwitchInstance(desc);
fail("Expected NullPointerException not thrown");
} catch (NullPointerException e) {
//expected
}
desc.setHardwareDescription(null);
try {
controller.getOFSwitchInstance(desc);
fail("Expected NullPointerException not thrown");
} catch (NullPointerException e) {
//expected
}
desc.setManufacturerDescription(null);
try {
controller.getOFSwitchInstance(desc);
fail("Expected NullPointerException not thrown");
} catch (NullPointerException e) {
//expected
}
desc.setSerialNumber(null);
try {
controller.getOFSwitchInstance(desc);
fail("Expected NullPointerException not thrown");
} catch (NullPointerException e) {
//expected
}
desc.setSoftwareDescription(null);
try {
controller.getOFSwitchInstance(desc);
fail("Expected NullPointerException not thrown");
} catch (NullPointerException e) {
//expected