@@ -0,0 +1,2445 @@
+package com.pspdfkit.vangogh.base;%0A%0Aimport android.support.test.InstrumentationRegistry;%0Aimport android.support.test.runner.AndroidJUnit4;%0Aimport android.view.View;%0Aimport android.view.animation.Interpolator;%0Aimport android.view.animation.LinearInterpolator;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A@RunWith(AndroidJUnit4.class)%0Apublic class AnimationBuilderTest %7B%0A%0A  @Test%0A  public void testAnimationBuilder() %7B%0A    View view = new View(InstrumentationRegistry.getContext());%0A    Interpolator interpolator = new LinearInterpolator();%0A    Animation a = AnimationBuilder.forView(view)%0A      .alpha(0.3f)%0A      .alphaBy(0.1f)%0A      .duration(100L)%0A      .interpolator(interpolator)%0A      .rotation(30f)%0A      .rotationBy(20f)%0A      .rotationX(12f)%0A      .rotationY(90f)%0A      .rotationXBy(100f)%0A      .rotationYBy(102f)%0A      .scaleX(1f)%0A      .scaleXBy(1.1f)%0A      .scaleY(0.1f)%0A      .scaleYBy(2.1f)%0A      .x(200f)%0A      .y(300f)%0A      .z(400f)%0A      .xBy(250f)%0A      .yBy(350f)%0A      .zBy(450f)%0A      .translationX(1f)%0A      .translationXBy(2f)%0A      .translationY(3f)%0A      .translationYBy(4f)%0A      .translationZ(5f)%0A      .translationZBy(6f)%0A      .build();%0A%0A    assertEquals(view, a.getView().get());%0A    assertEquals(0.3f, a.getAlpha(), 0.0f);%0A    assertEquals(0.1f, a.getAlphaBy(), 0.0f);%0A    assertEquals(100L, a.getDuration().longValue());%0A    assertEquals(interpolator, a.getInterpolator());%0A    assertEquals(30f, a.getRotation(), 0f);%0A    assertEquals(20f, a.getRotationBy(), 0f);%0A    assertEquals(12f, a.getRotationX(), 0f);%0A    assertEquals(90f, a.getRotationY(), 0f);%0A    assertEquals(100f, a.getRotationXBy(), 0f);%0A    assertEquals(102f, a.getRotationYBy(), 0f);%0A    assertEquals(1f, a.getScaleX(), 0f);%0A    assertEquals(1.1f, a.getScaleXBy(), 0f);%0A    assertEquals(0.1f, a.getScaleY(), 0f);%0A    assertEquals(2.1f, a.getScaleYBy(), 0f);%0A    assertEquals(200f, a.getX(), 0f);%0A    assertEquals(300f, a.getY(), 0f);%0A    assertEquals(400f, a.getZ(), 0f);%0A    assertEquals(250f, a.getXBy(), 0f);%0A    assertEquals(350f, a.getYBy(), 0f);%0A    assertEquals(450f, a.getZBy(), 0f);%0A    assertEquals(1f, a.getTranslationX(), 0f);%0A    assertEquals(2f, a.getTranslationXBy(), 0f);%0A    assertEquals(3f, a.getTranslationY(), 0f);%0A    assertEquals(4f, a.getTranslationYBy(), 0f);%0A    assertEquals(5f, a.getTranslationZ(), 0f);%0A    assertEquals(6f, a.getTranslationZBy(), 0f);%0A  %7D%0A%0A%7D%0A

Add AnimationBuilderTest