@Test(expected = IllegalArgumentException.class)
public void testConstructorStartServerRenewIntervalTooSmall()
throws Exception
{
WatchdogServiceImpl watchdog = null;
Properties properties = createProperties(
StandardProperties.APP_NAME, "TestWatchdogServiceImpl",
StandardProperties.NODE_TYPE, NodeType.coreServerNode.name(),
WatchdogServerPropertyPrefix + ".port", "0",
WatchdogServerPropertyPrefix + ".renew.interval", "0");
try {
watchdog =
new WatchdogServiceImpl(properties, systemRegistry, txnProxy,
dummyShutdownCtrl);
} finally {
if (watchdog != null) watchdog.shutdown();
}
}