@Test public void testSendMessageLengthThrowsNullPointerException() throws Throwable { BASE24TCPChannel bASE24TCPChannel = new BASE24TCPChannel(new ISO87APackager()); try { bASE24TCPChannel.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 { len++; serverOut.write (len >> 8); serverOut.write (len); }
BASE24TCPChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { len++; serverOut.write (len >> 8); serverOut.write (len); } }
BASE24TCPChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { len++; serverOut.write (len >> 8); serverOut.write (len); } BASE24TCPChannel();  BASE24TCPChannel(String host, int port, ISOPackager p);  BASE24TCPChannel(ISOPackager p);  BASE24TCPChannel(ISOPackager p, ServerSocket serverSocket); }
BASE24TCPChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { len++; serverOut.write (len >> 8); serverOut.write (len); } BASE24TCPChannel();  BASE24TCPChannel(String host, int port, ISOPackager p);  BASE24TCPChannel(ISOPackager p);  BASE24TCPChannel(ISOPackager p, ServerSocket serverSocket);  }
BASE24TCPChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { len++; serverOut.write (len >> 8); serverOut.write (len); } BASE24TCPChannel();  BASE24TCPChannel(String host, int port, ISOPackager p);  BASE24TCPChannel(ISOPackager p);  BASE24TCPChannel(ISOPackager p, ServerSocket serverSocket);   }