@Test public void requestChangedShouldReturnFalseWhenRequestValueAndStoreValueAreTheSame() throws Exception { assertThat(sut.requestChanged(Optional.of("any"), Optional.of("any"))).isFalse(); }
@VisibleForTesting <T> boolean requestChanged(Optional<T> requestValue, Optional<T> storeValue) { return requestValue.isPresent() && !requestValue.equals(storeValue); }
SetMailboxesUpdateProcessor implements SetMailboxesProcessor { @VisibleForTesting <T> boolean requestChanged(Optional<T> requestValue, Optional<T> storeValue) { return requestValue.isPresent() && !requestValue.equals(storeValue); } }
SetMailboxesUpdateProcessor implements SetMailboxesProcessor { @VisibleForTesting <T> boolean requestChanged(Optional<T> requestValue, Optional<T> storeValue) { return requestValue.isPresent() && !requestValue.equals(storeValue); } @Inject @VisibleForTesting  SetMailboxesUpdateProcessor(MailboxUtils mailboxUtils, MailboxManager mailboxManager, MailboxFactory mailboxFactory, MetricFactory metricFactory); }
SetMailboxesUpdateProcessor implements SetMailboxesProcessor { @VisibleForTesting <T> boolean requestChanged(Optional<T> requestValue, Optional<T> storeValue) { return requestValue.isPresent() && !requestValue.equals(storeValue); } @Inject @VisibleForTesting  SetMailboxesUpdateProcessor(MailboxUtils mailboxUtils, MailboxManager mailboxManager, MailboxFactory mailboxFactory, MetricFactory metricFactory); @Override SetMailboxesResponse process(SetMailboxesRequest request, MailboxSession mailboxSession); }
SetMailboxesUpdateProcessor implements SetMailboxesProcessor { @VisibleForTesting <T> boolean requestChanged(Optional<T> requestValue, Optional<T> storeValue) { return requestValue.isPresent() && !requestValue.equals(storeValue); } @Inject @VisibleForTesting  SetMailboxesUpdateProcessor(MailboxUtils mailboxUtils, MailboxManager mailboxManager, MailboxFactory mailboxFactory, MetricFactory metricFactory); @Override SetMailboxesResponse process(SetMailboxesRequest request, MailboxSession mailboxSession);  }