diff options
Diffstat (limited to 'core/java/android/test/InstrumentationTestCase.java')
-rw-r--r-- | core/java/android/test/InstrumentationTestCase.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/java/android/test/InstrumentationTestCase.java b/core/java/android/test/InstrumentationTestCase.java index 2145d7c..22d95d1 100644 --- a/core/java/android/test/InstrumentationTestCase.java +++ b/core/java/android/test/InstrumentationTestCase.java @@ -43,11 +43,25 @@ public class InstrumentationTestCase extends TestCase { * * @param instrumentation the instrumentation to use with this instance */ - public void injectInsrumentation(Instrumentation instrumentation) { + public void injectInstrumentation(Instrumentation instrumentation) { mInstrumentation = instrumentation; } /** + * Injects instrumentation into this test case. This method is + * called by the test runner during test setup. + * + * @param instrumentation the instrumentation to use with this instance + * + * @deprecated Incorrect spelling, + * use {@link #injectInstrumentation(android.app.Instrumentation) instead. + */ + @Deprecated + public void injectInsrumentation(Instrumentation instrumentation) { + injectInstrumentation(instrumentation); + } + + /** * Inheritors can access the instrumentation using this. * @return instrumentation */ |