FileDocCategorySizeDatePackage
VerticalGravityTest.javaAPI DocAndroid 1.5 API2739Wed May 06 22:42:02 BST 2009com.android.frameworktest.layout.table

VerticalGravityTest

public class VerticalGravityTest extends android.test.ActivityInstrumentationTestCase
{@link com.android.frameworktest.layout.table.VerticalGravity} is setup to exercise tables in which cells use vertical gravity.

Fields Summary
private android.view.View
mReference1
private android.view.View
mReference2
private android.view.View
mReference3
private android.view.View
mTop
private android.view.View
mCenter
private android.view.View
mBottom
Constructors Summary
public VerticalGravityTest()

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

        super.setUp();

        final VerticalGravity activity = getActivity();
        mReference1 = activity.findViewById(R.id.reference1);
        mReference2 = activity.findViewById(R.id.reference2);
        mReference3 = activity.findViewById(R.id.reference3);
        mTop        = activity.findViewById(R.id.cell_top);
        mCenter     = activity.findViewById(R.id.cell_center);
        mBottom     = activity.findViewById(R.id.cell_bottom);
    
public voidtestBottomGravity()

        ViewAsserts.assertBottomAligned(mReference3, mBottom);
    
public voidtestCenterGravity()

        ViewAsserts.assertVerticalCenterAligned(mReference2, mCenter);
    
public voidtestSetUpConditions()

        assertNotNull(mReference1);
        assertNotNull(mReference2);
        assertNotNull(mReference3);
        assertNotNull(mTop);
        assertNotNull(mCenter);
        assertNotNull(mBottom);
    
public voidtestTopGravity()

        ViewAsserts.assertTopAligned(mReference1, mTop);