{
ReplicationManagerImpl manager = new ReplicationManagerImpl(failoverManager, factory);
manager.start();
try
{
manager.compareJournals(new JournalLoadInformation[] { new JournalLoadInformation(2, 2),
new JournalLoadInformation(2, 2) });
Assert.fail("Exception was expected");
}
catch (HornetQException e)
{
e.printStackTrace();
Assert.assertEquals(HornetQException.ILLEGAL_STATE, e.getCode());
}
manager.compareJournals(new JournalLoadInformation[] { new JournalLoadInformation(),
new JournalLoadInformation() });
manager.stop();
}
finally
{