113114115116117118119120121122123
ctrl.reset(); listener1.postShutdown(); listener2.postShutdown(); ctrl.replay(); mgr.postShutdown(); ctrl.verify(); } public void testDeregistration() { IMocksControl ctrl = EasyMock.createStrictControl();
132133134135136137138139140141142
ctrl.reset(); listener1.initComplete(); ctrl.replay(); mgr.initComplete(); ctrl.verify(); ctrl.reset(); listener1.preShutdown(); ctrl.replay(); mgr.preShutdown();
138139140141142143144145146147148
ctrl.reset(); listener1.preShutdown(); ctrl.replay(); mgr.preShutdown(); ctrl.verify(); ctrl.reset(); listener1.postShutdown(); ctrl.replay(); mgr.postShutdown();
144145146147148149150151
ctrl.reset(); listener1.postShutdown(); ctrl.replay(); mgr.postShutdown(); ctrl.verify(); } }
67686970717273747576
assertTrue(sema.tryAcquire(10, TimeUnit.SECONDS)); tm.stop(); c.verify(); } }
99100101102103104105106107108109
exRegs.add(exReg); exRegs.add(exReg2); tm.notifyListenersOfRemovalIfAppropriate(sref, exRegs); c.verify(); EasyMock.verify(epl); } }
105106107108109110111112113114115
System.out.println("start"); rsal.start(); control.verify(); }
6768697071727374757677
a.updated(null); a.stop(bc); c.verify(); } @Test public void testConfugrationUpdate() throws Exception {
96979899100101102103104105106
a.start(bc); a.updated(null); c.verify(); c.reset(); final Dictionary d = new Properties(); d.put("test", "value");
120121122123124125126127128
}).once(); a.cmReg = cmReg; c.replay(); a.updated(d); c.verify(); } }