FileDocCategorySizeDatePackage
MutateDrawableTest.javaAPI DocAndroid 1.5 API1787Wed May 06 22:42:02 BST 2009com.android.frameworktest.drawable

MutateDrawableTest

public class MutateDrawableTest extends android.test.ActivityInstrumentationTestCase2

Fields Summary
private android.view.View
mFirstButton
private android.view.View
mSecondButton
Constructors Summary
public MutateDrawableTest()

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

        super.setUp();

        mFirstButton = getActivity().findViewById(com.android.frameworktest.R.id.a);
        mSecondButton = getActivity().findViewById(com.android.frameworktest.R.id.b);
    
public voidtestDrawableCanMutate()

        assertNotSame(mFirstButton.getBackground().getConstantState(),
                mSecondButton.getBackground().getConstantState());
    
public voidtestSetUpConditions()

        assertNotNull(mFirstButton);
        assertNotNull(mSecondButton);
        assertNotSame(mFirstButton.getBackground(), mSecondButton.getBackground());