Lines Matching refs:tc
201 for (TestCase tc : testCases) { in runTests()
202 System.out.println(tc.testName); in runTests()
204 runTest(tc); in runTests()
211 private void runTest(TestCase tc) throws Exception { in runTest() argument
214 Class<?> c = Class.forName(tc.testClass); in runTest()
222 if (m.getName().equals(tc.testMethodName)) { in runTest()
230 tc.testMethodName + " in class " + in runTest()
231 tc.testClass + " for test " + in runTest()
232 tc.testName); in runTest()
236 retValue = method.invoke(null, tc.values); in runTest()
238 retValue = method.invoke(method.getDeclaringClass().newInstance(), tc.values); in runTest()
240 if (tc.expectedException != null) { in runTest()
242 tc.testName); in runTest()
243 } else if (tc.expectedReturn == null && retValue != null) { in runTest()
245 tc.testName + " got " + retValue); in runTest()
246 } else if (tc.expectedReturn != null && in runTest()
247 (retValue == null || !tc.expectedReturn.equals(retValue))) { in runTest()
249 tc.expectedReturn + in runTest()
251 } else if (tc.checkCompiled && compiledWithOptimizing() && !isAotVerified(c)) { in runTest()
254 " be verified in compile-time in test " + tc.testName); in runTest()
260 if (tc.expectedException == null) { in runTest()
263 exc.getCause().getClass().equals(tc.expectedException.getClass())) { in runTest()
265 } else if (!tc.expectedException.getClass().equals(exc.getClass())) { in runTest()
267 tc.expectedException.getClass().getName() + in runTest()