@Test public void testStop() { tested.stop(); verify(handle1, times(1)).stop(); verify(handle2, times(1)).stop(); verify(handle1, never()).run(); verify(handle2, never()).run(); }
@Override public IAnimationHandle stop() { handles.forEach(IAnimationHandle::stop); return this; }
MultipleAnimationHandle implements IAnimationHandle { @Override public IAnimationHandle stop() { handles.forEach(IAnimationHandle::stop); return this; } }
MultipleAnimationHandle implements IAnimationHandle { @Override public IAnimationHandle stop() { handles.forEach(IAnimationHandle::stop); return this; } MultipleAnimationHandle(final List<IAnimationHandle> handles); }
MultipleAnimationHandle implements IAnimationHandle { @Override public IAnimationHandle stop() { handles.forEach(IAnimationHandle::stop); return this; } MultipleAnimationHandle(final List<IAnimationHandle> handles); @Override IAnimationHandle run(); @Override IAnimationHandle stop(); @Override Node<?> getNode(); @Override boolean isRunning(); }
MultipleAnimationHandle implements IAnimationHandle { @Override public IAnimationHandle stop() { handles.forEach(IAnimationHandle::stop); return this; } MultipleAnimationHandle(final List<IAnimationHandle> handles); @Override IAnimationHandle run(); @Override IAnimationHandle stop(); @Override Node<?> getNode(); @Override boolean isRunning();  }