@Test public void testReset() { tested.setAnimationHandle(animationHandle); tested.reset(); verify(shape, never()).animate(any(AnimationTweener.class), any(AnimationProperties.class), anyDouble(), any(AnimationCallback.class)); verify(animationHandle, times(1)).stop(); assertEquals(ShapeState.NONE, tested.getShapeState()); }
@Override public ShapeState reset() { if (null != animationHandle) { animationHandle.stop(); setAnimationHandle(null); } return handler.reset(); }
ShapeStateAttributeAnimationHandler implements ShapeStateHandler { @Override public ShapeState reset() { if (null != animationHandle) { animationHandle.stop(); setAnimationHandle(null); } return handler.reset(); } }
ShapeStateAttributeAnimationHandler implements ShapeStateHandler { @Override public ShapeState reset() { if (null != animationHandle) { animationHandle.stop(); setAnimationHandle(null); } return handler.reset(); } ShapeStateAttributeAnimationHandler(); }
ShapeStateAttributeAnimationHandler implements ShapeStateHandler { @Override public ShapeState reset() { if (null != animationHandle) { animationHandle.stop(); setAnimationHandle(null); } return handler.reset(); } ShapeStateAttributeAnimationHandler(); ShapeStateAttributeHandler<V> getAttributesHandler(); ShapeStateAttributeAnimationHandler<V> onComplete(final Command completeCallback); @Override void applyState(final ShapeState shapeState); @Override ShapeStateAttributeAnimationHandler<V> shapeAttributesChanged(); @Override ShapeState reset(); @Override ShapeState getShapeState(); }
ShapeStateAttributeAnimationHandler implements ShapeStateHandler { @Override public ShapeState reset() { if (null != animationHandle) { animationHandle.stop(); setAnimationHandle(null); } return handler.reset(); } ShapeStateAttributeAnimationHandler(); ShapeStateAttributeHandler<V> getAttributesHandler(); ShapeStateAttributeAnimationHandler<V> onComplete(final Command completeCallback); @Override void applyState(final ShapeState shapeState); @Override ShapeStateAttributeAnimationHandler<V> shapeAttributesChanged(); @Override ShapeState reset(); @Override ShapeState getShapeState();  }