reference.sayGoodbye();
TestUtils.getLogger().debug("waiting for reactivation...");
setup.tearDown();
setup = new ClientServerSetup(Bug983Test.class.getName(),
"org.jacorb.test.bugs.bug983.HelloImpl", null, serverProps);
try
{
reference.sayHello();
reference.sayGoodbye();
TestUtils.getLogger().debug("Worked fine!");
}
catch (Exception e)
{
TestUtils.getLogger().debug("Failed to call server", e);
fail("Failed to call restarted server" + e);
}
setup.tearDown();
try
{
reference.sayHello();
fail ("Should have been down");
}
catch (Exception e)
{
TestUtils.getLogger().debug("Ok, it was down", e);
}
TestUtils.getLogger().debug("waiting for reactivation...");
setup = new ClientServerSetup(Bug983Test.class.getName(),
"org.jacorb.test.bugs.bug983.HelloImpl", null, serverProps);
try
{
reference.sayHello();