@Test public void testIsBanned() { assertEquals(account.isBanned(), ACCOUNT_BANNED); account.setBanned(!ACCOUNT_BANNED); assertEquals(account.isBanned(), !ACCOUNT_BANNED); }
@Override public boolean isBanned() { return banned; }
AccountImpl implements Account { @Override public boolean isBanned() { return banned; } }
AccountImpl implements Account { @Override public boolean isBanned() { return banned; } AccountImpl(String name, String password, String mail, Set<String> characters, boolean banned); }
AccountImpl implements Account { @Override public boolean isBanned() { return banned; } 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 isBanned() { return banned; } 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);  }