@Test public void toStringOutputsCorrectString() { final MessageHash hash = new MessageHash("val".getBytes()); final String toString = hash.toString(); assertThat(toString).isEqualTo("dmFs"); }
@Override public String toString() { return Base64.getEncoder().encodeToString(hashBytes); }
MessageHash implements Serializable { @Override public String toString() { return Base64.getEncoder().encodeToString(hashBytes); } }
MessageHash implements Serializable { @Override public String toString() { return Base64.getEncoder().encodeToString(hashBytes); } MessageHash();  MessageHash(final byte[] hashBytes); }
MessageHash implements Serializable { @Override public String toString() { return Base64.getEncoder().encodeToString(hashBytes); } MessageHash();  MessageHash(final byte[] hashBytes); void setHashBytes(final byte[] hashBytes); byte[] getHashBytes(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
MessageHash implements Serializable { @Override public String toString() { return Base64.getEncoder().encodeToString(hashBytes); } MessageHash();  MessageHash(final byte[] hashBytes); void setHashBytes(final byte[] hashBytes); byte[] getHashBytes(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }