FileDocCategorySizeDatePackage
ListBottomGravityTest.javaAPI DocAndroid 1.5 API1605Wed May 06 22:42:02 BST 2009com.android.frameworktest.listview

ListBottomGravityTest

public class ListBottomGravityTest extends android.test.ActivityInstrumentationTestCase

Fields Summary
private com.android.frameworktest.listview.ListBottomGravity
mActivity
private android.widget.ListView
mListView
Constructors Summary
public ListBottomGravityTest()

        super("com.android.frameworktest", ListBottomGravity.class);
    
Methods Summary
protected voidsetUp()

        super.setUp();

        mActivity = getActivity();
        mListView = getActivity().getListView();
    
public voidtestPreconditions()

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