assertTrue(loc.getDriver() == null);
}
@Test
public void ensureGetAndSetPortWorks() {
Port newPort = Port.valueOf(1000);
TestDataUtils.testGetterAndSetter(loc, DatabaseLocation.PORT_PROPERTY, "getPort", "setPort", Port.DEFAULT,
newPort);
Port oldPort = newPort;
newPort = Port.valueOf(-1);
TestDataUtils.testGetterAndSetter(loc, DatabaseLocation.PORT_PROPERTY, "getPort", "setPort", oldPort, newPort);
assertSame(Port.INVALID, loc.getPort());
loc.setPort(null);
assertSame(Port.DEFAULT, loc.getPort());