@Test(timeout = 30_000) public void testExternalActionMonoError() { newReconciler(current -> Collections.emptyList()); try { reconciler.apply(anything -> Mono.error(new RuntimeException("simulated error"))).block(); fail("Expected error"); } catch (Exception e) { assertThat(e).isInstanceOf(RuntimeException.class); assertThat(e.getMessage()).isEqualTo("simulated error"); } assertThat(changesSubscriber.takeNext()).isNull(); }
@Override public Mono<DATA> apply(Function<DATA, Mono<DATA>> action) { return executor.apply(action); }
DefaultOneOffReconciler implements OneOffReconciler<DATA> { @Override public Mono<DATA> apply(Function<DATA, Mono<DATA>> action) { return executor.apply(action); } }
DefaultOneOffReconciler implements OneOffReconciler<DATA> { @Override public Mono<DATA> apply(Function<DATA, Mono<DATA>> action) { return executor.apply(action); } DefaultOneOffReconciler(String id,
                                   DATA initial,
                                   Duration quickCycle,
                                   Duration longCycle,
                                   Function<DATA, List<Mono<Function<DATA, DATA>>>> reconcilerActionsProvider,
                                   Scheduler scheduler,
                                   TitusRuntime titusRuntime); }
DefaultOneOffReconciler implements OneOffReconciler<DATA> { @Override public Mono<DATA> apply(Function<DATA, Mono<DATA>> action) { return executor.apply(action); } DefaultOneOffReconciler(String id,
                                   DATA initial,
                                   Duration quickCycle,
                                   Duration longCycle,
                                   Function<DATA, List<Mono<Function<DATA, DATA>>>> reconcilerActionsProvider,
                                   Scheduler scheduler,
                                   TitusRuntime titusRuntime); @Override Mono<Void> close(); @Override DATA getCurrent(); @Override Mono<DATA> apply(Function<DATA, Mono<DATA>> action); @Override Flux<DATA> changes(); }
DefaultOneOffReconciler implements OneOffReconciler<DATA> { @Override public Mono<DATA> apply(Function<DATA, Mono<DATA>> action) { return executor.apply(action); } DefaultOneOffReconciler(String id,
                                   DATA initial,
                                   Duration quickCycle,
                                   Duration longCycle,
                                   Function<DATA, List<Mono<Function<DATA, DATA>>>> reconcilerActionsProvider,
                                   Scheduler scheduler,
                                   TitusRuntime titusRuntime); @Override Mono<Void> close(); @Override DATA getCurrent(); @Override Mono<DATA> apply(Function<DATA, Mono<DATA>> action); @Override Flux<DATA> changes();  }