@Test(expected = IllegalArgumentException.class) public void testBundleMustNotBeNull() { withNullBundle(); handleStop(); }
void handleStop(Bundle bundle) { if (bundle == null) { throw new IllegalArgumentException("Method argument bundle must not be null."); } this.logger.info("Removing infrastructure for bundle: " + bundle + "..."); this.modelRegistrar.unregister(bundle); this.dispatcherServlet.disableMvc(bundle); this.logger.info("Infrastructure for {} removed.", bundle); }
ContextShutdownHandler { void handleStop(Bundle bundle) { if (bundle == null) { throw new IllegalArgumentException("Method argument bundle must not be null."); } this.logger.info("Removing infrastructure for bundle: " + bundle + "..."); this.modelRegistrar.unregister(bundle); this.dispatcherServlet.disableMvc(bundle); this.logger.info("Infrastructure for {} removed.", bundle); } }
ContextShutdownHandler { void handleStop(Bundle bundle) { if (bundle == null) { throw new IllegalArgumentException("Method argument bundle must not be null."); } this.logger.info("Removing infrastructure for bundle: " + bundle + "..."); this.modelRegistrar.unregister(bundle); this.dispatcherServlet.disableMvc(bundle); this.logger.info("Infrastructure for {} removed.", bundle); }  }
ContextShutdownHandler { void handleStop(Bundle bundle) { if (bundle == null) { throw new IllegalArgumentException("Method argument bundle must not be null."); } this.logger.info("Removing infrastructure for bundle: " + bundle + "..."); this.modelRegistrar.unregister(bundle); this.dispatcherServlet.disableMvc(bundle); this.logger.info("Infrastructure for {} removed.", bundle); }   }
ContextShutdownHandler { void handleStop(Bundle bundle) { if (bundle == null) { throw new IllegalArgumentException("Method argument bundle must not be null."); } this.logger.info("Removing infrastructure for bundle: " + bundle + "..."); this.modelRegistrar.unregister(bundle); this.dispatcherServlet.disableMvc(bundle); this.logger.info("Infrastructure for {} removed.", bundle); }    }