Android APIs
public class

DefaultItemAnimatorTest

extends ActivityInstrumentationTestCase2<TestActivity>
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ android.test.InstrumentationTestCase
         ↳ android.test.ActivityTestCase
           ↳ android.test.ActivityInstrumentationTestCase2<android.support.v7.widget.TestActivity>
             ↳ android.support.v7.widget.DefaultItemAnimatorTest

Summary

Public Constructors
DefaultItemAnimatorTest()
Public Methods
void cancelAfter(int count, ViewHolder... toCancel)
void cancelBefore(int count, ViewHolder... toCancel)
void cancelChangeBothTest(boolean before)
void cancelChangeNewTest(boolean before)
void cancelChangeOldTest(boolean before)
void cancelTest(boolean before, int count, ViewHolder... toCancel)
void runTestOnUiThread(Runnable r)
Helper for running portions of a test on the UI thread.
void testAnimateAdd()
void testAnimateChange()
void testAnimateMove()
void testAnimateRemove()
void testCancelAddAfter()
void testCancelAddBefore()
void testCancelChangeBothAfter()
void testCancelChangeBothBefore()
void testCancelChangeNewAfter()
void testCancelChangeNewBefore()
void testCancelChangeOldAfter()
void testCancelChangeOldBefore()
void testCancelMoveAfter()
void testCancelMoveBefore()
void testCancelRemove()
Protected Methods
void setUp()
Sets up the fixture, for example, open a network connection.
void tearDown()
Make sure all resources are cleaned up and garbage collected before moving on to the next test.
[Expand]
Inherited Methods
From class android.test.ActivityInstrumentationTestCase2
From class android.test.ActivityTestCase
From class android.test.InstrumentationTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public DefaultItemAnimatorTest ()

Public Methods

public void cancelAfter (int count, ViewHolder... toCancel)

Throws
Throwable

public void cancelBefore (int count, ViewHolder... toCancel)

Throws
Throwable

public void cancelChangeBothTest (boolean before)

Throws
Throwable

public void cancelChangeNewTest (boolean before)

Throws
Throwable

public void cancelChangeOldTest (boolean before)

Throws
Throwable

public void cancelTest (boolean before, int count, ViewHolder... toCancel)

Throws
Throwable

public void runTestOnUiThread (Runnable r)

Helper for running portions of a test on the UI thread. Note, in most cases it is simpler to annotate the test method with UiThreadTest, which will run the entire test method on the UI thread. Use this method if you need to switch in and out of the UI thread to perform your test.

Parameters
r runnable containing test code in the run() method
Throws
Throwable

public void testAnimateAdd ()

Throws
Throwable

public void testAnimateChange ()

Throws
Throwable

public void testAnimateMove ()

Throws
Throwable

public void testAnimateRemove ()

Throws
Throwable

public void testCancelAddAfter ()

Throws
Throwable

public void testCancelAddBefore ()

Throws
Throwable

public void testCancelChangeBothAfter ()

Throws
Throwable

public void testCancelChangeBothBefore ()

Throws
Throwable

public void testCancelChangeNewAfter ()

Throws
Throwable

public void testCancelChangeNewBefore ()

Throws
Throwable

public void testCancelChangeOldAfter ()

Throws
Throwable

public void testCancelChangeOldBefore ()

Throws
Throwable

public void testCancelMoveAfter ()

Throws
Throwable

public void testCancelMoveBefore ()

Throws
Throwable

public void testCancelRemove ()

Throws
Throwable

Protected Methods

protected void setUp ()

Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Throws
Exception

protected void tearDown ()

Make sure all resources are cleaned up and garbage collected before moving on to the next test. Subclasses that override this method should make sure they call super.tearDown() at the end of the overriding method.

Throws
Exception