FileDocCategorySizeDatePackage
ListBottomGravityTest.javaAPI DocAndroid 5.1 API1590Thu Mar 12 22:22:12 GMT 2015android.widget.listview

ListBottomGravityTest

public class ListBottomGravityTest extends android.test.ActivityInstrumentationTestCase

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

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