@Test public void testAuthenticate() { assertTrue(account.authenticate(ACCOUNT_PASSWORD)); assertFalse(account.authenticate(ACCOUNT_INVALID_PASSWORD)); }
@Override public boolean authenticate(String password) { return this.password.toLowerCase().equals(password.toLowerCase()); }
AccountImpl implements Account { @Override public boolean authenticate(String password) { return this.password.toLowerCase().equals(password.toLowerCase()); } }
AccountImpl implements Account { @Override public boolean authenticate(String password) { return this.password.toLowerCase().equals(password.toLowerCase()); } AccountImpl(String name, String password, String mail, Set<String> characters, boolean banned); }
AccountImpl implements Account { @Override public boolean authenticate(String password) { return this.password.toLowerCase().equals(password.toLowerCase()); } AccountImpl(String name, String password, String mail, Set<String> characters, boolean banned); @Override String getName(); @Override String getMail(); @Override Set<String> getCharacters(); @Override boolean hasCharacter(String name); @Override boolean isBanned(); @Override boolean authenticate(String password); @Override void addCharacter(String name); @Override void setBanned(boolean banned); @Override int hashCode(); @Override boolean equals(final Object obj); }
AccountImpl implements Account { @Override public boolean authenticate(String password) { return this.password.toLowerCase().equals(password.toLowerCase()); } AccountImpl(String name, String password, String mail, Set<String> characters, boolean banned); @Override String getName(); @Override String getMail(); @Override Set<String> getCharacters(); @Override boolean hasCharacter(String name); @Override boolean isBanned(); @Override boolean authenticate(String password); @Override void addCharacter(String name); @Override void setBanned(boolean banned); @Override int hashCode(); @Override boolean equals(final Object obj);  }