@Test public void getAuthoritiesAsString() { CoffeeNetUserDetails coffeeNetUserDetails = new CoffeeNetUserDetailsStub(); assertThat(coffeeNetUserDetails.getAuthoritiesAsString(), is(hasItems("ROLE_COFFEENET-ADMIN", "ROLE_COFFEENET-USER"))); }
@Override public Set<String> getAuthoritiesAsString() { return getAuthorities().stream().map(GrantedAuthority::getAuthority).collect(toSet()); }
AbstractCoffeeNetUser implements CoffeeNetUserDetails { @Override public Set<String> getAuthoritiesAsString() { return getAuthorities().stream().map(GrantedAuthority::getAuthority).collect(toSet()); } }
AbstractCoffeeNetUser implements CoffeeNetUserDetails { @Override public Set<String> getAuthoritiesAsString() { return getAuthorities().stream().map(GrantedAuthority::getAuthority).collect(toSet()); }  }
AbstractCoffeeNetUser implements CoffeeNetUserDetails { @Override public Set<String> getAuthoritiesAsString() { return getAuthorities().stream().map(GrantedAuthority::getAuthority).collect(toSet()); }  @Override boolean hasRoles(String... roles); @Override Set<String> getAuthoritiesAsString(); }
AbstractCoffeeNetUser implements CoffeeNetUserDetails { @Override public Set<String> getAuthoritiesAsString() { return getAuthorities().stream().map(GrantedAuthority::getAuthority).collect(toSet()); }  @Override boolean hasRoles(String... roles); @Override Set<String> getAuthoritiesAsString();  }