@Test public void getDefaults() { Set<SystemScope> defaults = Sets.newHashSet(defaultDynScope1, defaultDynScope2, defaultScope1, defaultScope2); assertThat(service.getDefaults(), equalTo(defaults)); }
@Override public Set<SystemScope> getDefaults() { return Sets.filter(getAll(), isDefault); }
DefaultSystemScopeService implements SystemScopeService { @Override public Set<SystemScope> getDefaults() { return Sets.filter(getAll(), isDefault); } }
DefaultSystemScopeService implements SystemScopeService { @Override public Set<SystemScope> getDefaults() { return Sets.filter(getAll(), isDefault); }  }
DefaultSystemScopeService implements SystemScopeService { @Override public Set<SystemScope> getDefaults() { return Sets.filter(getAll(), isDefault); }  @Override Set<SystemScope> getAll(); @Override SystemScope getById(Long id); @Override SystemScope getByValue(String value); @Override void remove(SystemScope scope); @Override SystemScope save(SystemScope scope); @Override Set<SystemScope> fromStrings(Set<String> scope); @Override Set<String> toStrings(Set<SystemScope> scope); @Override boolean scopesMatch(Set<String> expected, Set<String> actual); @Override Set<SystemScope> getDefaults(); @Override Set<SystemScope> getReserved(); @Override Set<SystemScope> getRestricted(); @Override Set<SystemScope> getUnrestricted(); @Override Set<SystemScope> removeRestrictedAndReservedScopes(Set<SystemScope> scopes); @Override Set<SystemScope> removeReservedScopes(Set<SystemScope> scopes); }
DefaultSystemScopeService implements SystemScopeService { @Override public Set<SystemScope> getDefaults() { return Sets.filter(getAll(), isDefault); }  @Override Set<SystemScope> getAll(); @Override SystemScope getById(Long id); @Override SystemScope getByValue(String value); @Override void remove(SystemScope scope); @Override SystemScope save(SystemScope scope); @Override Set<SystemScope> fromStrings(Set<String> scope); @Override Set<String> toStrings(Set<SystemScope> scope); @Override boolean scopesMatch(Set<String> expected, Set<String> actual); @Override Set<SystemScope> getDefaults(); @Override Set<SystemScope> getReserved(); @Override Set<SystemScope> getRestricted(); @Override Set<SystemScope> getUnrestricted(); @Override Set<SystemScope> removeRestrictedAndReservedScopes(Set<SystemScope> scopes); @Override Set<SystemScope> removeReservedScopes(Set<SystemScope> scopes);  }