@Test public void testStopActivator() throws Exception { Activator a = new Activator(); a.guardProxyCatalog = EasyMock.createMock(GuardProxyCatalog.class); a.guardProxyCatalog.close(); EasyMock.expectLastCall().once(); EasyMock.replay(a.guardProxyCatalog); a.stop(EasyMock.createMock(BundleContext.class)); EasyMock.verify(a.guardProxyCatalog); }
@Override public void stop(BundleContext bundleContext) throws Exception { if (guardProxyCatalog != null) { guardProxyCatalog.close(); } }
Activator implements BundleActivator { @Override public void stop(BundleContext bundleContext) throws Exception { if (guardProxyCatalog != null) { guardProxyCatalog.close(); } } }
Activator implements BundleActivator { @Override public void stop(BundleContext bundleContext) throws Exception { if (guardProxyCatalog != null) { guardProxyCatalog.close(); } }  }
Activator implements BundleActivator { @Override public void stop(BundleContext bundleContext) throws Exception { if (guardProxyCatalog != null) { guardProxyCatalog.close(); } }  @Override void start(BundleContext bundleContext); @Override void stop(BundleContext bundleContext); }
Activator implements BundleActivator { @Override public void stop(BundleContext bundleContext) throws Exception { if (guardProxyCatalog != null) { guardProxyCatalog.close(); } }  @Override void start(BundleContext bundleContext); @Override void stop(BundleContext bundleContext);  }