@Test public void nonNullInput() { UserCredential result = new UserCredential("wasabi_admin", "admin_wasabi"); assertThat(result.toBase64Encode(), is("d2FzYWJpX2FkbWluOmFkbWluX3dhc2FiaQ==")); }
public String toBase64Encode() { return new String(Base64.encodeBase64((this.username + ":" + this.password).getBytes())); }
UserCredential { public String toBase64Encode() { return new String(Base64.encodeBase64((this.username + ":" + this.password).getBytes())); } }
UserCredential { public String toBase64Encode() { return new String(Base64.encodeBase64((this.username + ":" + this.password).getBytes())); } UserCredential(String username, String password); }
UserCredential { public String toBase64Encode() { return new String(Base64.encodeBase64((this.username + ":" + this.password).getBytes())); } UserCredential(String username, String password); String toBase64Encode(); }
UserCredential { public String toBase64Encode() { return new String(Base64.encodeBase64((this.username + ":" + this.password).getBytes())); } UserCredential(String username, String password); String toBase64Encode();  }