@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void start() { if (config.getBoolean(SONAR_WEB_SSO_ENABLE.getKey()).orElse(false)) { LOG.info("HTTP headers authentication enabled"); enabled = true; PROPERTIES.forEach(entry -> settingsByKey.put(entry.getKey(), config.get(entry.getKey()).orElse(entry.getDefaultValue()))); } }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
@Override public void forEach(Consumer<? super E> action) { delegate.forEach(action); }
public HubServerConfigBuilder() { EnumSet.allOf(Property.class).forEach(property -> { values.put(property, null); }); values.put(Property.TIMEOUT, String.valueOf(DEFAULT_TIMEOUT_SECONDS)); }
@Override public void start() { if (config.getBoolean(SONAR_WEB_SSO_ENABLE.getKey()).orElse(false)) { LOG.info("HTTP headers authentication enabled"); enabled = true; SETTINGS.forEach(entry -> settingsByKey.put(entry.getKey(), config.get(entry.getKey()).orElse(entry.getDefaultValue()))); } }
@Test // GH-473 public void shouldFireEventsOnDeletingIterables() { List<Actor> actors = Arrays.asList(new Actor("Sylvester"), new Actor("Chuck")); actors.forEach(session::save); Iterable<Actor> iterableActors = actors.stream()::iterator; session.delete(iterableActors); EnumSet<Event.TYPE> preAndPostDelete = EnumSet.of(Event.TYPE.PRE_DELETE, Event.TYPE.POST_DELETE); actors.forEach(actor -> preAndPostDelete.forEach(type -> assertThat(eventListener.captured(actor, type))) ); } }
@Test // GH-473 public void shouldFireEventsOnSavingIterables() { List<Actor> actors = Arrays.asList(new Actor("Arnold"), new Actor("Bruce")); Iterable<Actor> iterableActors = actors.stream()::iterator; session.save(iterableActors); EnumSet<Event.TYPE> preAndPostSave = EnumSet.of(Event.TYPE.PRE_SAVE, Event.TYPE.POST_SAVE); actors.forEach(actor -> preAndPostSave.forEach(type -> assertThat(eventListener.captured(actor, type))) ); }