@Test public void testDoStop() throws Exception { OsgiDefaultProducer producer = createProducer(Collections.singletonMap("key", (Object) "value")); ServiceHelper.startService(producer); ServiceHelper.stopService(producer); verify(producer.getApplicationBundleContext()).removeServiceListener(Matchers.any(ServiceListener.class)); }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(processor); services.stopTracking(); super.doStop(); }
OsgiDefaultProducer extends DefaultProducer { @Override protected void doStop() throws Exception { ServiceHelper.stopService(processor); services.stopTracking(); super.doStop(); } }
OsgiDefaultProducer extends DefaultProducer { @Override protected void doStop() throws Exception { ServiceHelper.stopService(processor); services.stopTracking(); super.doStop(); } OsgiDefaultProducer(OsgiDefaultEndpoint endpoint, Map<String, Object> props); }
OsgiDefaultProducer extends DefaultProducer { @Override protected void doStop() throws Exception { ServiceHelper.stopService(processor); services.stopTracking(); super.doStop(); } OsgiDefaultProducer(OsgiDefaultEndpoint endpoint, Map<String, Object> props); @Override void process(Exchange exchange); @Override OsgiDefaultEndpoint getEndpoint(); }
OsgiDefaultProducer extends DefaultProducer { @Override protected void doStop() throws Exception { ServiceHelper.stopService(processor); services.stopTracking(); super.doStop(); } OsgiDefaultProducer(OsgiDefaultEndpoint endpoint, Map<String, Object> props); @Override void process(Exchange exchange); @Override OsgiDefaultEndpoint getEndpoint();  }