Loading core/java/android/test/AndroidTestCase.java +6 −0 Original line number Diff line number Diff line Loading @@ -29,7 +29,13 @@ import java.lang.reflect.Modifier; /** * Extend this if you need to access Resources or other things that depend on Activity Context. * * @deprecated Use * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html"> * InstrumentationRegistry</a> instead. New tests should be written using the * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ @Deprecated public class AndroidTestCase extends TestCase { protected Context mContext; Loading core/java/android/test/FlakyTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -26,7 +26,13 @@ import java.lang.annotation.ElementType; * test methods. When the annotation is present, the test method is re-executed if * the test fails. The total number of executions is specified by the tolerance and * defaults to 1. * * @deprecated Use * <a href="{@docRoot}reference/android/support/test/filters/FlakyTest.html"> * FlakyTest</a> instead. New tests should be written using the * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ @Deprecated @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface FlakyTest { Loading core/java/android/test/InstrumentationTestCase.java +7 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,13 @@ import junit.framework.TestCase; /** * A test case that has access to {@link Instrumentation}. * * @deprecated Use * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html"> * InstrumentationRegistry</a> instead. New tests should be written using the * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ @Deprecated public class InstrumentationTestCase extends TestCase { private Instrumentation mInstrumentation; Loading core/java/android/test/InstrumentationTestSuite.java +6 −0 Original line number Diff line number Diff line Loading @@ -25,7 +25,13 @@ import junit.framework.TestResult; /** * A {@link junit.framework.TestSuite} that injects {@link android.app.Instrumentation} into * {@link InstrumentationTestCase} before running them. * * @deprecated Use * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html"> * InstrumentationRegistry</a> instead. New tests should be written using the * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ @Deprecated public class InstrumentationTestSuite extends TestSuite { private final Instrumentation mInstrumentation; Loading core/java/android/test/PerformanceTestCase.java +9 −8 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ package android.test; * If you want your test to be used as a performance test, you must * implement this interface. */ @Deprecated public interface PerformanceTestCase { /** Loading Loading
core/java/android/test/AndroidTestCase.java +6 −0 Original line number Diff line number Diff line Loading @@ -29,7 +29,13 @@ import java.lang.reflect.Modifier; /** * Extend this if you need to access Resources or other things that depend on Activity Context. * * @deprecated Use * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html"> * InstrumentationRegistry</a> instead. New tests should be written using the * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ @Deprecated public class AndroidTestCase extends TestCase { protected Context mContext; Loading
core/java/android/test/FlakyTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -26,7 +26,13 @@ import java.lang.annotation.ElementType; * test methods. When the annotation is present, the test method is re-executed if * the test fails. The total number of executions is specified by the tolerance and * defaults to 1. * * @deprecated Use * <a href="{@docRoot}reference/android/support/test/filters/FlakyTest.html"> * FlakyTest</a> instead. New tests should be written using the * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ @Deprecated @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface FlakyTest { Loading
core/java/android/test/InstrumentationTestCase.java +7 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,13 @@ import junit.framework.TestCase; /** * A test case that has access to {@link Instrumentation}. * * @deprecated Use * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html"> * InstrumentationRegistry</a> instead. New tests should be written using the * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ @Deprecated public class InstrumentationTestCase extends TestCase { private Instrumentation mInstrumentation; Loading
core/java/android/test/InstrumentationTestSuite.java +6 −0 Original line number Diff line number Diff line Loading @@ -25,7 +25,13 @@ import junit.framework.TestResult; /** * A {@link junit.framework.TestSuite} that injects {@link android.app.Instrumentation} into * {@link InstrumentationTestCase} before running them. * * @deprecated Use * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html"> * InstrumentationRegistry</a> instead. New tests should be written using the * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ @Deprecated public class InstrumentationTestSuite extends TestSuite { private final Instrumentation mInstrumentation; Loading
core/java/android/test/PerformanceTestCase.java +9 −8 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ package android.test; * If you want your test to be used as a performance test, you must * implement this interface. */ @Deprecated public interface PerformanceTestCase { /** Loading