FileDocCategorySizeDatePackage
GridStackFromBottomTest.javaAPI DocAndroid 5.1 API1594Thu Mar 12 22:22:12 GMT 2015android.widget.gridview

GridStackFromBottomTest

public class GridStackFromBottomTest extends android.test.ActivityInstrumentationTestCase

Fields Summary
private android.widget.gridview.GridStackFromBottom
mActivity
private android.widget.GridView
mGridView
Constructors Summary
public GridStackFromBottomTest()

        super("com.android.frameworks.coretests", GridStackFromBottom.class);
    
Methods Summary
protected voidsetUp()

        super.setUp();

        mActivity = getActivity();
        mGridView = getActivity().getGridView();
    
public voidtestPreconditions()

        assertNotNull(mActivity);
        assertNotNull(mGridView);

        // Last item should be selected
        assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition());