assertEquals(true, f.isShutdown());
}
public void testShutdownFailure() throws Exception
{
ShutdownCoordinator c = new ShutdownCoordinatorImpl();
c.addRegistryShutdownListener(new RegistryShutdownListener()
{
public void registryDidShutdown()
{
throw new ApplicationRuntimeException("I'm just not in the mood.");
}
});
interceptLogging();
c.shutdown();
assertLoggedMessagePattern("Unable to shutdown .*: I'm just not in the mood\\.");
}