@Test public void testSendMessageLengthThrowsNullPointerException() throws Throwable { PostChannel postChannel = new PostChannel(new ISO93APackager()); try { postChannel.sendMessageLength(100); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \"java.io.DataOutputStream.write(int)\" because \"this.serverOut\" is null", ex.getMessage(), "ex.getMessage()"); } } }
protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); }
PostChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); } }
PostChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); } PostChannel();  PostChannel(String host, int port, ISOPackager p);  PostChannel(ISOPackager p);  PostChannel(ISOPackager p, ServerSocket serverSocket); }
PostChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); } PostChannel();  PostChannel(String host, int port, ISOPackager p);  PostChannel(ISOPackager p);  PostChannel(ISOPackager p, ServerSocket serverSocket); void setHeader(String header); }
PostChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); } PostChannel();  PostChannel(String host, int port, ISOPackager p);  PostChannel(ISOPackager p);  PostChannel(ISOPackager p, ServerSocket serverSocket); void setHeader(String header);  }