{
}
try
{
poo.setResolver(new MockResolver());
Assert.fail("Should not allow resolver to be set after framework starts");
}
catch (Exception e)
{
}
poo.stop();
poo.waitForStop(0);
try
{
poo.setParser(new Parser());
}
catch (Exception e)
{
Assert.fail("Should allow parser to be set before framework starts: " + poo.getState());
}
try
{
poo.setResolver(new MockResolver());
}
catch (Exception e)
{
Assert.fail("Should allow resolver to be set before framework starts");
}