@Test public void testWriteExternalThrowsNullPointerException1() throws Throwable { try { new ISOField(100).writeExternal(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \"java.io.ObjectOutput.writeShort(int)\" because \"out\" is null", ex.getMessage(), "ex.getMessage()"); } } }
@Override public void writeExternal (ObjectOutput out) throws IOException { out.writeShort (fieldNumber); out.writeUTF (value); }
ISOField extends ISOComponent implements Cloneable, Externalizable { @Override public void writeExternal (ObjectOutput out) throws IOException { out.writeShort (fieldNumber); out.writeUTF (value); } }
ISOField extends ISOComponent implements Cloneable, Externalizable { @Override public void writeExternal (ObjectOutput out) throws IOException { out.writeShort (fieldNumber); out.writeUTF (value); } ISOField();  ISOField(int n);  ISOField(int n, String v); }
ISOField extends ISOComponent implements Cloneable, Externalizable { @Override public void writeExternal (ObjectOutput out) throws IOException { out.writeShort (fieldNumber); out.writeUTF (value); } ISOField();  ISOField(int n);  ISOField(int n, String v); @Override byte[] pack(); @Override int unpack(byte[] b); @Override void unpack(InputStream in); @Override Object getKey(); @Override Object getValue(); @Override void setValue(Object obj); @Override byte[] getBytes(); @Override void dump(PrintStream p, String indent); @Override void setFieldNumber(int fieldNumber); @Override int getFieldNumber(); @Override void writeExternal(ObjectOutput out); @Override void readExternal(ObjectInput in); }
ISOField extends ISOComponent implements Cloneable, Externalizable { @Override public void writeExternal (ObjectOutput out) throws IOException { out.writeShort (fieldNumber); out.writeUTF (value); } ISOField();  ISOField(int n);  ISOField(int n, String v); @Override byte[] pack(); @Override int unpack(byte[] b); @Override void unpack(InputStream in); @Override Object getKey(); @Override Object getValue(); @Override void setValue(Object obj); @Override byte[] getBytes(); @Override void dump(PrintStream p, String indent); @Override void setFieldNumber(int fieldNumber); @Override int getFieldNumber(); @Override void writeExternal(ObjectOutput out); @Override void readExternal(ObjectInput in);  }