FileDocCategorySizeDatePackage
ListUnspecifiedMeasure.javaAPI DocAndroid 1.5 API1729Wed May 06 22:42:02 BST 2009com.android.frameworktest.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.frameworktest", 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);