@Test public void testDumpThrowsNullPointerException() throws Throwable { try { new BASE1Header("testBaseHeaderSource", "testBaseHeaderDestination").dump(null, "testBaseHeaderIndent"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \"java.io.PrintStream.println(String)\" because \"p\" is null", ex.getMessage(), "ex.getMessage()"); } } }
public void dump (PrintStream p, String indent) { if (header != null) { p.println ( indent + "<header>" + ISOUtil.hexString (header) + "</header>" ); } }
BaseHeader implements ISOHeader, Loggeable { public void dump (PrintStream p, String indent) { if (header != null) { p.println ( indent + "<header>" + ISOUtil.hexString (header) + "</header>" ); } } }
BaseHeader implements ISOHeader, Loggeable { public void dump (PrintStream p, String indent) { if (header != null) { p.println ( indent + "<header>" + ISOUtil.hexString (header) + "</header>" ); } } BaseHeader();  BaseHeader(byte[] header); }
BaseHeader implements ISOHeader, Loggeable { public void dump (PrintStream p, String indent) { if (header != null) { p.println ( indent + "<header>" + ISOUtil.hexString (header) + "</header>" ); } } BaseHeader();  BaseHeader(byte[] header); Object clone(); byte[] pack(); int unpack(byte[] header); int getLength(); void setDestination(String dst); void setSource(String src); String getDestination(); String getSource(); void swapDirection(); void dump(PrintStream p, String indent); void setAsciiEncoding(boolean asciiEncoding); boolean isAsciiEncoding(); }
BaseHeader implements ISOHeader, Loggeable { public void dump (PrintStream p, String indent) { if (header != null) { p.println ( indent + "<header>" + ISOUtil.hexString (header) + "</header>" ); } } BaseHeader();  BaseHeader(byte[] header); Object clone(); byte[] pack(); int unpack(byte[] header); int getLength(); void setDestination(String dst); void setSource(String src); String getDestination(); String getSource(); void swapDirection(); void dump(PrintStream p, String indent); void setAsciiEncoding(boolean asciiEncoding); boolean isAsciiEncoding();  }