FileDocCategorySizeDatePackage
Test.javaAPI DocAndroid 5.1 API1865Thu Mar 12 22:22:12 GMT 2015com.android.multidexlegacytestapp

Test

public class Test extends android.test.ActivityInstrumentationTestCase2
Run the tests with: adb shell am instrument -w com.android.multidexlegacytestapp/android.test.InstrumentationTestRunner

Fields Summary
Constructors Summary
public Test()

        super(MainActivity.class);
    
Methods Summary
public voidtestAllClassesAvailable()

        assertEquals(3366, getActivity().getValue());
    
public voidtestAnnotation()

        assertEquals(ReferencedByAnnotation.B,
                ((AnnotationWithEnum) TestApplication.annotation).value());
        assertEquals(ReferencedByAnnotation.B,
                ((AnnotationWithEnum) TestApplication.getAnnotationWithEnum()).value());
        // Just to verify that it doesn't crash
        getActivity().getAnnotation2Value();

        assertEquals(ReferencedByClassInAnnotation.class,
                ((AnnotationWithClass) TestApplication.annotation3).value());
        // Just to verify that it doesn't crash
        ReferencedByClassInAnnotation.A.get();
    
public voidtestInterface()

        assertEquals(InterfaceWithEnum.class,
                TestApplication.interfaceClass);