@Test(expected = UnsupportedOperationException.class) public void getEmailUnsupportedOperationException() { MachineCoffeeNetUser sut = new MachineCoffeeNetUser("username", emptyList()); sut.getEmail(); }
@Override public String getEmail() { throw new UnsupportedOperationException(); }
MachineCoffeeNetUser extends AbstractCoffeeNetUser { @Override public String getEmail() { throw new UnsupportedOperationException(); } }
MachineCoffeeNetUser extends AbstractCoffeeNetUser { @Override public String getEmail() { throw new UnsupportedOperationException(); } MachineCoffeeNetUser(String username, Collection<GrantedAuthority> authorities); }
MachineCoffeeNetUser extends AbstractCoffeeNetUser { @Override public String getEmail() { throw new UnsupportedOperationException(); } MachineCoffeeNetUser(String username, Collection<GrantedAuthority> authorities); @Override String getUsername(); @Override String getEmail(); @Override Collection<GrantedAuthority> getAuthorities(); @Override boolean isCoffeeNetAdmin(); @Override boolean isMachineUser(); @Override String toString(); }
MachineCoffeeNetUser extends AbstractCoffeeNetUser { @Override public String getEmail() { throw new UnsupportedOperationException(); } MachineCoffeeNetUser(String username, Collection<GrantedAuthority> authorities); @Override String getUsername(); @Override String getEmail(); @Override Collection<GrantedAuthority> getAuthorities(); @Override boolean isCoffeeNetAdmin(); @Override boolean isMachineUser(); @Override String toString();  }