@@ -0,0 +1,2138 @@
+package com.pspdfkit.labs.vangogh.api;%0A%0Aimport android.support.test.runner.AndroidJUnit4;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport static com.pspdfkit.labs.vangogh.api.ToastAnimations.*;%0Aimport static org.junit.Assert.assertEquals;%0A%0A@RunWith(AndroidJUnit4.class)%0Apublic class ToastAnimationsTest extends BaseAnimationsTest %7B%0A%0A    @Test%0A    public void testShowAsToast() throws Throwable %7B%0A        showAsToast(view).subscribe(o);%0A        assertTestObserverCompletedAfterDuration(getFullToastDurationMs(ToastAnimations.VIEW_SHOW_DURATION_DEFAULT));%0A        assertEquals(0f, view.getAlpha(), 0f);%0A    %7D%0A%0A    @Test%0A    public void testShowAsToastWithDuration() throws Throwable %7B%0A        showAsToast(view, CUSTOM_TEST_DURATION_MS).subscribe(o);%0A        assertTestObserverCompletedAfterDuration(getFullToastDurationMs(CUSTOM_TEST_DURATION_MS));%0A        assertEquals(0f, view.getAlpha(), 0f);%0A    %7D%0A%0A    @Test%0A    public void testShowAsToastWithInterpolator() %7B%0A        // TODO Find a way to test interpolator.%0A    %7D%0A%0A    @Test%0A    public void testShowAsToastWithDurationAndInterpolator() %7B%0A        // TODO Find a way to test interpolator.%0A    %7D%0A%0A    @Test%0A    public void testShowAsToastQuickly() throws Throwable %7B%0A        showAsToastQuickly(view).subscribe(o);%0A        assertTestObserverCompletedAfterDuration(getFullToastDurationMs(ToastAnimations.VIEW_SHOW_DURATION_QUICK));%0A        assertEquals(0f, view.getAlpha(), 0f);%0A    %7D%0A%0A    @Test%0A    public void testShowAsToastQuicklyWithInterpolator() %7B%0A        // TODO Find a way to test interpolator.%0A    %7D%0A%0A    @Test%0A    public void testShowAsToastSlowly() throws Throwable %7B%0A        showAsToastSlowly(view).subscribe(o);%0A        assertTestObserverCompletedAfterDuration(getFullToastDurationMs(ToastAnimations.VIEW_SHOW_DURATION_SLOW));%0A        assertEquals(0f, view.getAlpha(), 0f);%0A    %7D%0A%0A    @Test%0A    public void testShowAsToastSlowlyWithInterpolator() %7B%0A        // TODO Find a way to test interpolator.%0A    %7D%0A%0A    private long getFullToastDurationMs(long viewDisplayDurationMs) %7B%0A        return 2 * ToastAnimations.FADE_DURATION + viewDisplayDurationMs;%0A    %7D%0A%0A%7D%0A

Add toast tests