Lines Matching refs:testClass

54         Class testClass = loadTestClass(testClassName);  in setTestClassName()  local
56 if (shouldRunSingleTestMethod(testMethodName, testClass)) { in setTestClassName()
57 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName()
60 mTestClassName = testClass.getSimpleName(); in setTestClassName()
62 setTest(getTest(testClass), testClass); in setTestClassName() local
70 private void setTest(Test test, Class<? extends Test> testClass) { in setTest() argument
72 if (TestSuite.class.isAssignableFrom(testClass)) { in setTest()
75 mTestClassName = testClass.getSimpleName(); in setTest()
99 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() argument
101 Constructor c = testClass.getConstructor(); in buildSingleTestMethod()
102 return newSingleTestMethod(testClass, testMethodName, c); in buildSingleTestMethod()
107 Constructor c = testClass.getConstructor(String.class); in buildSingleTestMethod()
108 return newSingleTestMethod(testClass, testMethodName, c, testMethodName); in buildSingleTestMethod()
115 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() argument
122 runFailed("Could not access test class. Class: " + testClass.getName()); in newSingleTestMethod()
124 runFailed("Could not instantiate test class. Class: " + testClass.getName()); in newSingleTestMethod()
126 runFailed("Illegal argument passed to constructor. Class: " + testClass.getName()); in newSingleTestMethod()
128 runFailed("Constructor threw an exception. Class: " + testClass.getName()); in newSingleTestMethod()
134 Class<? extends Test> testClass) { in shouldRunSingleTestMethod() argument
135 return testMethodName != null && TestCase.class.isAssignableFrom(testClass); in shouldRunSingleTestMethod()