(Throwable t, int port)
| 405 | } |
| 406 | |
| 407 | private static void sendResults(Throwable t, int port) throws IOException { |
| 408 | Socket s = new Socket(InetAddress.getLocalHost(), port); |
| 409 | OutputStream os = s.getOutputStream(); |
| 410 | if (t != null) { |
| 411 | t.printStackTrace(new PrintStream(os)); |
| 412 | } |
| 413 | s.close(); |
| 414 | } |
| 415 | |
| 416 | private static Throwable runTestCaseTest(String testClass, String method, int port) throws Exception { |
| 417 | TestCase test = (TestCase)Class.forName(testClass).getConstructor().newInstance(); |