@Test public void putsFeedbackInSinkByDefault() { FeedbackHandler handler = new FeedbackHandler(sink, () -> true); handler.handle(FEEDBACK); verify(sink, times(1)).registerFeedback(FEEDBACK); }
public void handle(ConjureTimeLockClientFeedback feedback) { if (useAdjudication.getAsBoolean()) { timeLockClientFeedbackSink.registerFeedback(feedback); } }
FeedbackHandler { public void handle(ConjureTimeLockClientFeedback feedback) { if (useAdjudication.getAsBoolean()) { timeLockClientFeedbackSink.registerFeedback(feedback); } } }
FeedbackHandler { public void handle(ConjureTimeLockClientFeedback feedback) { if (useAdjudication.getAsBoolean()) { timeLockClientFeedbackSink.registerFeedback(feedback); } } @VisibleForTesting  FeedbackHandler(TimeLockClientFeedbackSink sink, BooleanSupplier useAdjudication);  FeedbackHandler(MetricsManager metricsManager, BooleanSupplier useAdjudication); }
FeedbackHandler { public void handle(ConjureTimeLockClientFeedback feedback) { if (useAdjudication.getAsBoolean()) { timeLockClientFeedbackSink.registerFeedback(feedback); } } @VisibleForTesting  FeedbackHandler(TimeLockClientFeedbackSink sink, BooleanSupplier useAdjudication);  FeedbackHandler(MetricsManager metricsManager, BooleanSupplier useAdjudication); static FeedbackHandler createForTests(); void handle(ConjureTimeLockClientFeedback feedback); HealthStatusReport getTimeLockHealthStatus(); }
FeedbackHandler { public void handle(ConjureTimeLockClientFeedback feedback) { if (useAdjudication.getAsBoolean()) { timeLockClientFeedbackSink.registerFeedback(feedback); } } @VisibleForTesting  FeedbackHandler(TimeLockClientFeedbackSink sink, BooleanSupplier useAdjudication);  FeedbackHandler(MetricsManager metricsManager, BooleanSupplier useAdjudication); static FeedbackHandler createForTests(); void handle(ConjureTimeLockClientFeedback feedback); HealthStatusReport getTimeLockHealthStatus();  }