@Test public void testToString() throws Exception { assertEquals(String.format("Credentials(username=%s, password=%s)", username, password), credentials.toString()); }
@Override public String toString() { return String.format("Credentials(username=%s, password=%s)", username, password); }
Credentials { @Override public String toString() { return String.format("Credentials(username=%s, password=%s)", username, password); } }
Credentials { @Override public String toString() { return String.format("Credentials(username=%s, password=%s)", username, password); } Credentials(String username, String password); protected  Credentials(); }
Credentials { @Override public String toString() { return String.format("Credentials(username=%s, password=%s)", username, password); } Credentials(String username, String password); protected  Credentials(); String getUsername(); String getPassword(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
Credentials { @Override public String toString() { return String.format("Credentials(username=%s, password=%s)", username, password); } Credentials(String username, String password); protected  Credentials(); String getUsername(); String getPassword(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }