122123124125126127128129130131132
manager.start(); manager.stop(); } finally { server.stop(); } } public void testInvalidJournal() throws Exception {
162163164165166167168169170171172
manager.stop(); } finally { server.stop(); } } // should throw an exception if a second server connects to the same backup public void testInvalidConnection() throws Exception
202203204205206207208209210211212
manager.stop(); } finally { server.stop(); } } public void testConnectIntoNonBackup() throws Exception {
236237238239240241242243244245246
manager.stop(); } finally { server.stop(); } } public void testSendPackets() throws Exception {
336337338339340341342343344345346
manager.stop(); } finally { server.stop(); } } public void testSendPacketsWithFailure() throws Exception {
388389390391392393394395396397398
{ latch.countDown(); } }); server.stop(); Assert.assertTrue(latch.await(50, TimeUnit.SECONDS)); } finally {
394395396397398399400401402403404
Assert.assertTrue(latch.await(50, TimeUnit.SECONDS)); } finally { server.stop(); } } public void testExceptionSettingActionBefore() throws Exception {
570571572573574575576577578579580
Assert.assertEquals(0, manager.getActiveTokens().size()); manager.stop(); } finally { server.stop(); } } public void testOrderOnNonPersistency() throws Exception {
640641642643644645646647648649650
Assert.assertEquals(0, manager.getActiveTokens().size()); manager.stop(); } finally { server.stop(); } } class FakeData implements EncodingSupport {
118119120121122123124125126127128