@Test public void testSendMessageLengthThrowsNullPointerException() throws Throwable { CSChannel cSChannel = new CSChannel(); try { cSChannel.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); serverOut.write (0); serverOut.write (0); }
CSChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); serverOut.write (0); serverOut.write (0); } }
CSChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); serverOut.write (0); serverOut.write (0); } CSChannel();  CSChannel(String host, int port, ISOPackager p);  CSChannel(ISOPackager p);  CSChannel(ISOPackager p, ServerSocket serverSocket); }
CSChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); serverOut.write (0); serverOut.write (0); } CSChannel();  CSChannel(String host, int port, ISOPackager p);  CSChannel(ISOPackager p);  CSChannel(ISOPackager p, ServerSocket serverSocket); @Override void setConfiguration(Configuration cfg); }
CSChannel extends BaseChannel { protected void sendMessageLength(int len) throws IOException { serverOut.write (len >> 8); serverOut.write (len); serverOut.write (0); serverOut.write (0); } CSChannel();  CSChannel(String host, int port, ISOPackager p);  CSChannel(ISOPackager p);  CSChannel(ISOPackager p, ServerSocket serverSocket); @Override void setConfiguration(Configuration cfg);  }