@Test public void testConstructNegativeCodeSetNumber() { final int badNumber = -4389; IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> { new CodeSet(badNumber, description); }); assertThat(e.getMessage()) .isEqualTo("Code set must be a non-zero, positive integer: " + Integer.toString(badNumber)); }
@Override public String toString() { return ToStringBuilder.reflectionToString(this); }
CodeSet implements Described { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
CodeSet implements Described { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } CodeSet(final int codeSet);  CodeSet(final int codeSet, final String description); }
CodeSet implements Described { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } CodeSet(final int codeSet);  CodeSet(final int codeSet, final String description); @Override boolean equals(final Object obj); int getCodeSet(); @Override String getDescription(); @Override int hashCode(); @Override String toString(); }
CodeSet implements Described { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } CodeSet(final int codeSet);  CodeSet(final int codeSet, final String description); @Override boolean equals(final Object obj); int getCodeSet(); @Override String getDescription(); @Override int hashCode(); @Override String toString();  }