test_class.file: interactivespaces-core/src/test/java/interactivespaces/util/process/restart/NoRestartRestartStrategyTest.java
test_class.identifier: NoRestartRestartStrategyTest
test_case.body: @Test
    public void testRestart() {
      Restartable restartable = Mockito.mock(Restartable.class);
  
      RestartStrategyListener listener = Mockito.mock(RestartStrategyListener.class);
  
      NoRestartRestartStrategy strategy = new NoRestartRestartStrategy();
      strategy.addRestartStrategyListener(listener);
  
      RestartStrategyInstance instance = strategy.newInstance(restartable);
      Assert.assertFalse(instance.isRestarting());
  
      Mockito.verify(restartable, Mockito.times(1)).restartComplete(false);
      Mockito.verify(listener, Mockito.times(1)).onRestartFailure(strategy, restartable);
      Mockito.verify(listener, Mockito.times(0)).onRestartAttempt(strategy, restartable, true);
      Mockito.verify(listener, Mockito.times(0)).onRestartSuccess(strategy, restartable);
    }
test_case.class_method_signature: NoRestartRestartStrategyTest.testRestart()
test_case.full_signature: @Test public void testRestart()
test_case.identifier: testRestart
test_case.invocations: mock mock addRestartStrategyListener newInstance assertFalse isRestarting restartComplete verify times onRestartFailure verify times onRestartAttempt verify times onRestartSuccess verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRestart()
focal_class.file: interactivespaces-core/src/main/java/interactivespaces/util/process/restart/NoRestartRestartStrategy.java
focal_class.identifier: NoRestartRestartStrategy
focal_class.class_method_signature: NoRestartRestartStrategy.newInstance(T restartable)
focal_class.full_signature: @Override public RestartStrategyInstance<T> newInstance(T restartable)
focal_class.identifier: newInstance
focal_class.modifiers: @Override public
focal_class.parameters: (T restartable)
focal_class.return: RestartStrategyInstance<T>
focal_class.signature: RestartStrategyInstance<T> newInstance(T restartable)
focal_class.superclass: extends BaseRestartStrategy<T>
focal_method.body: @Override
    public RestartStrategyInstance<T> newInstance(T restartable) {
      NoRestartRestartStrategyInstance<T> instance = new NoRestartRestartStrategyInstance<T>(restartable, this);
      instance.startRestartAttempts();
  
      return instance;
    }
focal_method.class_method_signature: NoRestartRestartStrategy.newInstance(T restartable)
focal_method.full_signature: @Override public RestartStrategyInstance<T> newInstance(T restartable)
focal_method.identifier: newInstance
focal_method.invocations: startRestartAttempts
focal_method.modifiers: @Override public
focal_method.parameters: (T restartable)
focal_method.return: RestartStrategyInstance<T>
focal_method.signature: RestartStrategyInstance<T> newInstance(T restartable)