Home
last modified time | relevance | path

Searched refs:testMethodName (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java33 private final String testMethodName; field in TestMethod
43 this.testMethodName = methodName; in TestMethod()
51 return testMethodName; in getName()
73 return instantiateTest(enclosingClass, testMethodName); in createTest()
126 if (testMethodName != null in equals()
127 ? !testMethodName.equals(that.testMethodName) in equals()
128 : that.testMethodName != null) { in equals()
138 result = 31 * result + (testMethodName != null ? testMethodName.hashCode() : 0); in hashCode()
144 return enclosingClassname + "." + testMethodName; in toString()
DTestSuiteBuilder.java75 public TestSuiteBuilder addTestClassByName(String testClassName, String testMethodName, in addTestClassByName() argument
80 atr.setTestClassName(testClassName, testMethodName); in addTestClassByName()
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java49 public void setTestClassName(String testClassName, String testMethodName) { in setTestClassName() argument
52 if (shouldRunSingleTestMethod(testMethodName, testClass)) { in setTestClassName()
53 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName()
94 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() argument
97 return newSingleTestMethod(testClass, testMethodName, c); in buildSingleTestMethod()
103 return newSingleTestMethod(testClass, testMethodName, c, testMethodName); in buildSingleTestMethod()
110 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() argument
114 testCase.setName(testMethodName); in newSingleTestMethod()
128 private boolean shouldRunSingleTestMethod(String testMethodName, in shouldRunSingleTestMethod() argument
130 return testMethodName != null && TestCase.class.isAssignableFrom(testClass); in shouldRunSingleTestMethod()
DInstrumentationTestRunner.java437 String testMethodName = null; in parseTestClass() local
440 testMethodName = testClassName.substring(methodSeparatorIndex + 1); in parseTestClass()
443 testSuiteBuilder.addTestClassByName(testClassName, testMethodName, getTargetContext()); in parseTestClass()
/frameworks/base/test-runner/tests/src/android/test/
DAndroidTestRunnerTest.java163 String testMethodName = "testTwo"; in testRunSingleTestMethod() local
164 mAndroidTestRunner.setTestClassName(TwoTestTestCase.class.getName(), testMethodName); in testRunSingleTestMethod() local
170 assertEquals(Arrays.asList(testMethodName), testNames); in testRunSingleTestMethod()
183 String testMethodName = "testFail"; in testRunSkipExecution() local
185 OnePassOneErrorOneFailTestCase.class.getName(), testMethodName); in testRunSkipExecution() local
/frameworks/testing/androidtestlib/src/com/android/test/runner/
DTestRequestBuilder.java168 public void addTestMethod(String testClassName, String testMethodName) { in addTestMethod() argument
172 Description.createTestDescription(clazz, testMethodName))); in addTestMethod()
DAndroidJUnitRunner.java395 String testMethodName = testClassName.substring(methodSeparatorIndex + 1); in parseTestClass() local
397 testRequestBuilder.addTestMethod(testClassName, testMethodName); in parseTestClass()