FileDocCategorySizeDatePackage
ListUnspecifiedMeasure.javaAPI DocAndroid 5.1 API1732Thu Mar 12 22:22:12 GMT 2015android.widget.listview

ListUnspecifiedMeasure

public class ListUnspecifiedMeasure extends android.test.ActivityInstrumentationTestCase

Fields Summary
private T
mActivity
private android.widget.ListView
mListView
Constructors Summary
protected ListUnspecifiedMeasure(Class klass)

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

        super.setUp();

        mActivity = getActivity();
        mListView = (ListView) mActivity.findViewById(R.id.list);
    
public voidtestPreconditions()

        assertNotNull(mActivity);
        assertNotNull(mListView);
    
public voidtestWasMeasured()

        assertTrue(mListView.getMeasuredWidth() > 0);
        assertTrue(mListView.getWidth() > 0);
        assertTrue(mListView.getMeasuredHeight() > 0);
        assertTrue(mListView.getHeight() > 0);