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