FileDocCategorySizeDatePackage
MutateDrawableTest.javaAPI DocAndroid 5.1 API1822Thu Mar 12 22:22:12 GMT 2015android.view

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.frameworks.coretests", MutateDrawable.class);
    
Methods Summary
protected voidsetUp()

        super.setUp();

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

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

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