Exemplo n.º 1
0
  @Test
  public void removesAnimationTargetOnCleanup(@Mocked Effect mockedBase) {
    Rotate rotate = new Rotate(10, 200, 100);

    rotate.init(animator, null);
    rotate.cleanup(animator);

    new Verifications() {
      {
        animator.removeTarget((TimingTarget) withNotNull());
      }
    };
  }
Exemplo n.º 2
0
  @Test
  public void addsAnimationTargetOnInit(
      @Injectable ComponentState start, @Injectable ComponentState end) {
    Rotate rotate = new Rotate(start, end, 45, 100, 60);

    rotate.init(animator, null);

    new Verifications() {
      {
        animator.addTarget((TimingTarget) withNotNull());
      }
    };
  }