FileDocCategorySizeDatePackage
VerticalGravityTest.javaAPI DocAndroid 5.1 API2720Thu Mar 12 22:22:12 GMT 2015android.widget.layout.table

VerticalGravityTest

public class VerticalGravityTest extends android.test.ActivityInstrumentationTestCase
{@link android.widget.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.frameworks.coretests", 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);