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

FixedWidthTest

public class FixedWidthTest extends android.test.ActivityInstrumentationTestCase
{@link com.android.frameworktest.layout.table.FixedWidth} is setup to exercise tables in which cells use fixed width and height.

(Omit source code)

Fields Summary
private android.view.View
mFixedWidth
private android.view.View
mFixedHeight
private android.view.View
mNonFixedWidth
Constructors Summary
public FixedWidthTest()

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

        super.setUp();

        final FixedWidth activity = getActivity();
        mFixedWidth = activity.findViewById(R.id.fixed_width);
        mNonFixedWidth = activity.findViewById(R.id.non_fixed_width);
        mFixedHeight = activity.findViewById(R.id.fixed_height);
    
public voidtestFixedHeight()

        assertEquals(48, mFixedHeight.getHeight());
    
public voidtestFixedWidth()

        assertEquals(150, mFixedWidth.getWidth());
        assertEquals(mFixedWidth.getWidth(), mNonFixedWidth.getWidth());
    
public voidtestSetUpConditions()

        assertNotNull(mFixedWidth);
        assertNotNull(mFixedHeight);
        assertNotNull(mNonFixedWidth);