public virtual void testStopService() { // start some service serviceContainer.startService(service1Name, service1); // it's there assertNotNull(serviceContainer.getService(service1ObjectName)); // stop it: serviceContainer.stopService(service1Name); // now it's gone assertNull(serviceContainer.getService(service1ObjectName)); try { serviceContainer.stopService(service1Name); fail("exception expected"); } catch (Exception e) { assertTrue(e.Message.contains("no such service registered")); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void tearDown() public virtual void tearDown() { container.stopService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_EXECUTOR); }
public virtual void unregisterProcessEngine(ProcessEngine processEngine) { ensureNotNull("Cannot unregister process engine in Jmx Runtime Container", "process engine", processEngine); serviceContainer.stopService(ServiceTypes.PROCESS_ENGINE, processEngine.Name); }