Home
last modified time | relevance | path

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

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java37 private final String testMethodName; field in TestMethod
47 this.testMethodName = methodName; in TestMethod()
55 return testMethodName; in getName()
77 return instantiateTest(enclosingClass, testMethodName); in createTest()
130 if (testMethodName != null in equals()
131 ? !testMethodName.equals(that.testMethodName) in equals()
132 : that.testMethodName != null) { in equals()
142 result = 31 * result + (testMethodName != null ? testMethodName.hashCode() : 0); in hashCode()
148 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.java53 public void setTestClassName(String testClassName, String testMethodName) { in setTestClassName() argument
56 if (shouldRunSingleTestMethod(testMethodName, testClass)) { in setTestClassName()
57 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName()
99 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() argument
102 return newSingleTestMethod(testClass, testMethodName, c); in buildSingleTestMethod()
108 return newSingleTestMethod(testClass, testMethodName, c, testMethodName); in buildSingleTestMethod()
115 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() argument
119 testCase.setName(testMethodName); in newSingleTestMethod()
133 private boolean shouldRunSingleTestMethod(String testMethodName, in shouldRunSingleTestMethod() argument
135 return testMethodName != null && TestCase.class.isAssignableFrom(testClass); in shouldRunSingleTestMethod()
DInstrumentationTestRunner.java447 String testMethodName = null; in parseTestClass() local
450 testMethodName = testClassName.substring(methodSeparatorIndex + 1); in parseTestClass()
453 testSuiteBuilder.addTestClassByName(testClassName, testMethodName, getTargetContext()); in parseTestClass()
/frameworks/base/test-runner/tests/src/android/test/
DAndroidTestRunnerTest.java162 String testMethodName = "testTwo"; in testRunSingleTestMethod() local
163 mAndroidTestRunner.setTestClassName(TwoTestTestCase.class.getName(), testMethodName); in testRunSingleTestMethod() local
169 assertEquals(Arrays.asList(testMethodName), testNames); in testRunSingleTestMethod()
182 String testMethodName = "testFail"; in testRunSkipExecution() local
184 OnePassOneErrorOneFailTestCase.class.getName(), testMethodName); in testRunSkipExecution() local