Lines Matching refs:tc
188 for (TestCase tc : testCases) {
189 System.out.println(tc.testName);
191 runTest(tc);
198 private void runTest(TestCase tc) throws Exception {
201 Class<?> c = Class.forName(tc.testClass);
209 if (m.getName().equals(tc.testMethodName)) {
217 tc.testMethodName + " in class " +
218 tc.testClass + " for test " +
219 tc.testName);
223 retValue = method.invoke(null, tc.values);
225 retValue = method.invoke(method.getDeclaringClass().newInstance(), tc.values);
227 if (tc.expectedException != null) {
229 tc.testName);
230 } else if (tc.expectedReturn == null && retValue != null) {
232 tc.testName + " got " + retValue);
233 } else if (tc.expectedReturn != null &&
234 (retValue == null || !tc.expectedReturn.equals(retValue))) {
236 tc.expectedReturn +
243 if (tc.expectedException == null) {
246 exc.getCause().getClass().equals(tc.expectedException.getClass())) {
248 } else if (!tc.expectedException.getClass().equals(exc.getClass())) {
250 tc.expectedException.getClass().getName() +