Lines Matching refs:testClass
57 Class testClass = loadTestClass(testClassName); in setTestClassName() local
59 if (shouldRunSingleTestMethod(testMethodName, testClass)) { in setTestClassName()
60 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName()
62 mTestClassName = testClass.getSimpleName(); in setTestClassName()
64 setTest(getTest(testClass), testClass); in setTestClassName() local
72 private void setTest(Test test, Class<? extends Test> testClass) { in setTest() argument
74 if (TestSuite.class.isAssignableFrom(testClass)) { in setTest()
77 mTestClassName = testClass.getSimpleName(); in setTest()
101 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() argument
103 Constructor c = testClass.getConstructor(); in buildSingleTestMethod()
104 return newSingleTestMethod(testClass, testMethodName, c); in buildSingleTestMethod()
109 Constructor c = testClass.getConstructor(String.class); in buildSingleTestMethod()
110 return newSingleTestMethod(testClass, testMethodName, c, testMethodName); in buildSingleTestMethod()
117 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() argument
124 runFailed("Could not access test class. Class: " + testClass.getName()); in newSingleTestMethod()
126 runFailed("Could not instantiate test class. Class: " + testClass.getName()); in newSingleTestMethod()
128 runFailed("Illegal argument passed to constructor. Class: " + testClass.getName()); in newSingleTestMethod()
130 runFailed("Constructor thew an exception. Class: " + testClass.getName()); in newSingleTestMethod()
136 Class<? extends Test> testClass) { in shouldRunSingleTestMethod() argument
137 return testMethodName != null && TestCase.class.isAssignableFrom(testClass); in shouldRunSingleTestMethod()