private static void runTestCaseTest(String testClass, String method, int port) {
try {
TestCase test = (TestCase)Class.forName(testClass).newInstance();
test.setName(method);
TestResult result = new TestResult();
test.run(result);
Socket s = new Socket(InetAddress.getLocalHost(), port);
OutputStream os = s.getOutputStream();
if (result.failureCount() != 0) {
Enumeration e = result.failures();
Throwable t = ((TestFailure)e.nextElement()).thrownException();