package com.pspdfkit.vangogh.api;

import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.view.View;
import com.pspdfkit.vangogh.view.TestActivity;
import io.reactivex.annotations.NonNull;
import io.reactivex.observers.TestObserver;
import org.junit.Before;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(AndroidJUnit4.class)
public abstract class BaseAnimationsTest {

    @Rule
    public ActivityTestRule<TestActivity> activityRule = new ActivityTestRule<>(TestActivity.class);

    @NonNull
    protected View view;

    @NonNull
    protected TestObserver o;

    @Before
    public void setUp() {
        view = activityRule.getActivity().findViewById(com.pspdfkit.vangogh.test.R.id.view);
        o = new TestObserver();
    }

}

@@ -451,17 +451,230 @@
     
+/** Used for testing animations with custom duration. */%0A    protected static final long CUSTOM_TEST_DURATION_MS = 1300L;%0A%0A    /** Activity rule for the %7B@link TestActivity%7D that holds the view to be animated. */%0A    
 @Rule
-%0A   
  pub
@@ -768,16 +768,57 @@
 lass);%0A%0A
+    /** View being animated in tests. */%0A
     @Non
@@ -813,36 +813,32 @@
  */%0A    @NonNull
-%0A   
  protected View 
@@ -848,24 +848,83 @@
 w;%0A%0A    
+/** Test observer used for catching all the events. */%0A    
 @NonNull
 %0A    pro
@@ -915,20 +915,16 @@
 @NonNull
-%0A   
  protect

Add javadoc to the BaseAnimationsTest