90919293949596979899100
ctrl.reset(); listener1.initComplete(); listener2.initComplete(); ctrl.replay(); mgr.initComplete(); ctrl.verify(); ctrl.reset(); listener1.preShutdown(); listener2.preShutdown(); ctrl.replay();
979899100101102103104105106107
ctrl.reset(); listener1.preShutdown(); listener2.preShutdown(); ctrl.replay(); mgr.preShutdown(); ctrl.verify(); ctrl.reset(); listener1.postShutdown(); listener2.postShutdown(); ctrl.replay();
104105106107108109110111112113114
ctrl.reset(); listener1.postShutdown(); listener2.postShutdown(); ctrl.replay(); mgr.postShutdown(); ctrl.verify(); } @Test public void testDeregistration() {
124125126127128129130131132133134
ctrl.reset(); listener1.initComplete(); ctrl.replay(); mgr.initComplete(); ctrl.verify(); ctrl.reset(); listener1.preShutdown(); ctrl.replay(); mgr.preShutdown();
130131132133134135136137138139140
ctrl.reset(); listener1.preShutdown(); ctrl.replay(); mgr.preShutdown(); ctrl.verify(); ctrl.reset(); listener1.postShutdown(); ctrl.replay(); mgr.postShutdown();
136137138139140141142143
ctrl.reset(); listener1.postShutdown(); ctrl.replay(); mgr.postShutdown(); ctrl.verify(); } }
236237238239240241242243244245246
assertNotNull("expects a tmp file", tmpfile); assertTrue("expects a tmp file", tmpfile.exists()); close(cache); assertFalse("expects no tmp file", tmpfile.exists()); control.verify(); } finally { BusFactory.setThreadDefaultBus(oldbus); } }
147148149150151152153154
control1.replay(); LogicalHandlerInInterceptor li = new LogicalHandlerInInterceptor(binding1); li.handleMessage(outMessage); control1.verify(); } }
285286287288289290291292293294295
consumers.executeConsumers( repo, testFile, true ); knownControl.verify( ); invalidControl.verify( ); knownControl.reset( ); invalidControl.reset( ); File notIncludedTestFile = new File( "target/test-repo/path/to/test-file.xml" );
307308309310311312313314315316317
invalidControl.replay( ); consumers.executeConsumers( repo, notIncludedTestFile, true ); knownControl.verify( ); invalidControl.verify( ); knownControl.reset( ); invalidControl.reset( ); File excludedTestFile = new File( "target/test-repo/path/to/test-file.txt" );