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

HorizontalGravityTest

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

Fields Summary
private android.view.View
mReference
private android.view.View
mCenter
private android.view.View
mBottomRight
private android.view.View
mLeft
Constructors Summary
public HorizontalGravityTest()

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

        super.setUp();

        final HorizontalGravity activity = getActivity();
        mReference   = activity.findViewById(R.id.reference);
        mCenter      = activity.findViewById(R.id.center);
        mBottomRight = activity.findViewById(R.id.bottomRight);
        mLeft        = activity.findViewById(R.id.left);
    
public voidtestCenterGravity()

        ViewAsserts.assertHorizontalCenterAligned(mReference, mCenter);
    
public voidtestLeftGravity()

        ViewAsserts.assertLeftAligned(mReference, mLeft);
    
public voidtestRightGravity()

        ViewAsserts.assertRightAligned(mReference, mBottomRight);
    
public voidtestSetUpConditions()

        assertNotNull(mReference);
        assertNotNull(mCenter);
        assertNotNull(mBottomRight);
        assertNotNull(mLeft);