FileDocCategorySizeDatePackage
GridInHorizontalTest.javaAPI DocAndroid 5.1 API1592Thu Mar 12 22:22:12 GMT 2015android.widget.gridview

GridInHorizontalTest

public class GridInHorizontalTest extends android.test.ActivityInstrumentationTestCase

Fields Summary
private android.widget.gridview.GridInHorizontal
mActivity
private android.widget.GridView
mGridView
Constructors Summary
public GridInHorizontalTest()

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

        super.setUp();

        mActivity = getActivity();
        mGridView = getActivity().getGridView();
    
public voidtestPreconditions()

        assertNotNull(mActivity);
        assertNotNull(mGridView);
        assertTrue("Grid has 0 width", mGridView.getMeasuredWidth() > 0);
        assertTrue("Grid has 0 height", mGridView.getMeasuredHeight() > 0);