summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorJack Wang <jackwang@google.com>2009-08-20 19:20:54 -0700
committerJack Wang <jackwang@google.com>2009-08-25 12:44:56 -0700
commit7aba54b2edcb94f43c991c555b23fc1de364835e (patch)
tree236e10de49ded0f19999f0669ebc66d5273c19c7 /test-runner
parent617b22dc075bbf704421adf15f39388ec098b4fd (diff)
downloadframeworks_base-7aba54b2edcb94f43c991c555b23fc1de364835e.zip
frameworks_base-7aba54b2edcb94f43c991c555b23fc1de364835e.tar.gz
frameworks_base-7aba54b2edcb94f43c991c555b23fc1de364835e.tar.bz2
Fix bug 1546445: Correct spelling errors in API
- InstrumentationTestCase.injectInsrumentation - AndroidTestRunner.setInstrumentaiton
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/android/test/AndroidTestRunner.java13
-rw-r--r--test-runner/android/test/InstrumentationTestRunner.java2
2 files changed, 12 insertions, 3 deletions
diff --git a/test-runner/android/test/AndroidTestRunner.java b/test-runner/android/test/AndroidTestRunner.java
index 0d4e1e9..358b7e9 100644
--- a/test-runner/android/test/AndroidTestRunner.java
+++ b/test-runner/android/test/AndroidTestRunner.java
@@ -180,14 +180,23 @@ public class AndroidTestRunner extends BaseTestRunner {
private void setInstrumentationIfInstrumentationTestCase(
Test test, Instrumentation instrumentation) {
if (InstrumentationTestCase.class.isAssignableFrom(test.getClass())) {
- ((InstrumentationTestCase) test).injectInsrumentation(instrumentation);
+ ((InstrumentationTestCase) test).injectInstrumentation(instrumentation);
}
}
- public void setInstrumentaiton(Instrumentation instrumentation) {
+ public void setInstrumentation(Instrumentation instrumentation) {
mInstrumentation = instrumentation;
}
+ /**
+ * @deprecated Incorrect spelling,
+ * use {@link #setInstrumentation(android.app.Instrumentation)} instead.
+ */
+ @Deprecated
+ public void setInstrumentaiton(Instrumentation instrumentation) {
+ setInstrumentation(instrumentation);
+ }
+
@Override
protected Class loadSuiteClass(String suiteClassName) throws ClassNotFoundException {
return mContext.getClassLoader().loadClass(suiteClassName);
diff --git a/test-runner/android/test/InstrumentationTestRunner.java b/test-runner/android/test/InstrumentationTestRunner.java
index 6658fb0..23f0ed4 100644
--- a/test-runner/android/test/InstrumentationTestRunner.java
+++ b/test-runner/android/test/InstrumentationTestRunner.java
@@ -329,7 +329,7 @@ public class InstrumentationTestRunner extends Instrumentation implements TestSu
mTestRunner = getAndroidTestRunner();
mTestRunner.setContext(getTargetContext());
- mTestRunner.setInstrumentaiton(this);
+ mTestRunner.setInstrumentation(this);
mTestRunner.setSkipExecution(logOnly);
mTestRunner.setTest(testSuiteBuilder.build());
mTestCount = mTestRunner.getTestCases().size();