Android APIs
public class

RecyclerViewAnimationsTest

extends BaseRecyclerViewInstrumentationTest
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.BaseRecyclerViewInstrumentationTest
               ↳ android.support.v7.widget.RecyclerViewAnimationsTest

Summary

[Expand]
Inherited Fields
From class android.support.v7.widget.BaseRecyclerViewInstrumentationTest
Public Constructors
RecyclerViewAnimationsTest()
Public Methods
void changeAnimTest(boolean supportsChangeAnim, boolean changeType, boolean hasStableIds, boolean deleteSomeItems)
Map<Integer, RecyclerViewAnimationsTest.CollectPositionResult> collectPositions(RecyclerView recyclerView, RecyclerView.Recycler recycler, RecyclerView.State state, int... positions)
void getItemForDeletedViewTest(boolean stableIds)
RecyclerViewAnimationsTest.TestRecyclerView getTestRecyclerView()
void positionStatesTest(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount, BaseRecyclerViewInstrumentationTest.TestAdapter adapter, RecyclerViewAnimationsTest.AdapterOps adapterChanges, PositionConstraint... constraints)
void positionStatesTest(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount, RecyclerViewAnimationsTest.AdapterOps adapterChanges, PositionConstraint... constraints)
void testAdapterChangeDuringScrolling()
void testAddDelete1()
void testAddDelete2()
void testAddInvisible()
void testAddInvisibleAndVisible()
void testAddManyMultiStep()
void testAddRemoveSamePass()
void testAddSameIndexTwice()
void testBasicAdd()
void testBasicDelete()
void testChangeAnimations()
void testDeleteInvisible()
void testDeleteInvisibleMultiStep()
void testDeleteTwice()
void testDeleteVisibleAndInvisible()
void testDetachBeforeAnimations()
void testFindPositionOffset()
void testGetItemForDeletedView()
void testNotifyDataSetChanged()
void testNotifyDataSetChangedDuringScroll()
void testPreLayoutPositionCleanup()
void testRecycleDuringAnimations()
void testRemoveScrapInvalidate()
void testStableIdNotifyDataSetChanged()
Protected Methods
void setUp()
Sets up the fixture, for example, open a network connection.
[Expand]
Inherited Methods
From class android.support.v7.widget.BaseRecyclerViewInstrumentationTest
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 RecyclerViewAnimationsTest ()

Public Methods

public void changeAnimTest (boolean supportsChangeAnim, boolean changeType, boolean hasStableIds, boolean deleteSomeItems)

Throws
Throwable

public Map<Integer, RecyclerViewAnimationsTest.CollectPositionResult> collectPositions (RecyclerView recyclerView, RecyclerView.Recycler recycler, RecyclerView.State state, int... positions)

public void getItemForDeletedViewTest (boolean stableIds)

Throws
Throwable

public RecyclerViewAnimationsTest.TestRecyclerView getTestRecyclerView ()

public void positionStatesTest (int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount, BaseRecyclerViewInstrumentationTest.TestAdapter adapter, RecyclerViewAnimationsTest.AdapterOps adapterChanges, PositionConstraint... constraints)

Throws
Throwable

public void positionStatesTest (int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount, RecyclerViewAnimationsTest.AdapterOps adapterChanges, PositionConstraint... constraints)

Throws
Throwable

public void testAdapterChangeDuringScrolling ()

Throws
Throwable

public void testAddDelete1 ()

Throws
Throwable

public void testAddDelete2 ()

Throws
Throwable

public void testAddInvisible ()

Throws
Throwable

public void testAddInvisibleAndVisible ()

Throws
Throwable

public void testAddManyMultiStep ()

Throws
Throwable

public void testAddRemoveSamePass ()

Throws
Throwable

public void testAddSameIndexTwice ()

Throws
Throwable

public void testBasicAdd ()

Throws
Throwable

public void testBasicDelete ()

Throws
Throwable

public void testChangeAnimations ()

Throws
Throwable

public void testDeleteInvisible ()

Throws
Throwable

public void testDeleteInvisibleMultiStep ()

Throws
Throwable

public void testDeleteTwice ()

Throws
Throwable

public void testDeleteVisibleAndInvisible ()

Throws
Throwable

public void testDetachBeforeAnimations ()

Throws
Throwable

public void testFindPositionOffset ()

Throws
Throwable

public void testGetItemForDeletedView ()

Throws
Throwable

public void testNotifyDataSetChanged ()

Throws
Throwable

public void testNotifyDataSetChangedDuringScroll ()

Throws
Throwable

public void testPreLayoutPositionCleanup ()

Throws
Throwable

public void testRecycleDuringAnimations ()

Throws
Throwable

public void testRemoveScrapInvalidate ()

Throws
Throwable

public void testStableIdNotifyDataSetChanged ()

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