MCPcopy Index your code
hub / github.com/java-native-access/jna / sendResults

Method sendResults

test/com/sun/jna/WebStartTest.java:407–414  ·  view source on GitHub ↗
(Throwable t, int port)

Source from the content-addressed store, hash-verified

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();

Callers 1

mainMethod · 0.95

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected