/** * Wait for the service parent to stop * @param parent the service to wait for * @param timeout time in milliseconds */ protected void waitForParentToStop(ServiceParent parent, int timeout) { boolean stop = parent.waitForServiceToStop(timeout); if (!stop) { logState(parent); fail("Service failed to stop : after " + timeout + " millis " + parent); } }
/** * Wait for the service parent to stop * @param parent the service to wait for * @param timeout time in milliseconds */ protected void waitForParentToStop(ServiceParent parent, int timeout) { boolean stop = parent.waitForServiceToStop(timeout); if (!stop) { logState(parent); fail("Service failed to stop : after " + timeout + " millis " + parent); } }