@Test public void whenLifeCycleStoppingThenProcessLifeCycleStopProcess() { ProcessLifeCycle plc = mock(ProcessLifeCycle.class); new VitamServerLifeCycle(plc).lifeCycleStopping(mock(LifeCycle.class)); verify(plc).stopProcess(); }
@Override public void lifeCycleStopping(LifeCycle event) { processLifeCycle.stopProcess(); }
VitamServerLifeCycle implements Listener { @Override public void lifeCycleStopping(LifeCycle event) { processLifeCycle.stopProcess(); } }
VitamServerLifeCycle implements Listener { @Override public void lifeCycleStopping(LifeCycle event) { processLifeCycle.stopProcess(); } VitamServerLifeCycle(ProcessLifeCycle processLifeCycle); }
VitamServerLifeCycle implements Listener { @Override public void lifeCycleStopping(LifeCycle event) { processLifeCycle.stopProcess(); } VitamServerLifeCycle(ProcessLifeCycle processLifeCycle); @Override void lifeCycleStarting(LifeCycle event); @Override void lifeCycleStarted(LifeCycle event); @Override void lifeCycleFailure(LifeCycle event, Throwable cause); @Override void lifeCycleStopping(LifeCycle event); @Override void lifeCycleStopped(LifeCycle event); }
VitamServerLifeCycle implements Listener { @Override public void lifeCycleStopping(LifeCycle event) { processLifeCycle.stopProcess(); } VitamServerLifeCycle(ProcessLifeCycle processLifeCycle); @Override void lifeCycleStarting(LifeCycle event); @Override void lifeCycleStarted(LifeCycle event); @Override void lifeCycleFailure(LifeCycle event, Throwable cause); @Override void lifeCycleStopping(LifeCycle event); @Override void lifeCycleStopped(LifeCycle event);  }