FileDocCategorySizeDatePackage
GridStackFromBottomTest.javaAPI DocAndroid 1.5 API1609Wed May 06 22:42:02 BST 2009com.android.frameworktest.gridview

GridStackFromBottomTest

public class GridStackFromBottomTest extends android.test.ActivityInstrumentationTestCase

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

        super("com.android.frameworktest", 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());