/** * Use {@link #buildService(Service...)} to create service and then start it * @param services * @return */ protected ServiceParent startService(Service... services) { ServiceParent parent = buildService(services); //expect service to start and stay started parent.start(); return parent; }
/** * Use {@link #buildService(Service...)} to create service and then start it * @param services * @return */ protected ServiceParent startService(Service... services) { ServiceParent parent = buildService(services); //expect service to start and stay started parent.start(); return parent; }
@Test public void testVarargsConstructor() throws Throwable { MockService one = new MockService("one", false, 100); MockService two = new MockService("two", false, 100); ServiceParent parent = new WorkflowSequenceService("test", one, two); parent.init(new Configuration()); parent.start(); waitForParentToStop(parent); assertStopped(one); assertStopped(two); }
@Test public void testVarargsConstructor() throws Throwable { MockService one = new MockService("one", false, 100); MockService two = new MockService("two", false, 100); ServiceParent parent = new WorkflowSequenceService("test", one, two); parent.init(new Configuration()); parent.start(); waitForParentToStop(parent); assertStopped(one); assertStopped(two); }