@Test public void getImplementedCapabilitiesShouldNotContainMoveWhenUnSupportedByMailboxManager() { when(mockMailboxManager.hasCapability(eq(MailboxCapabilities.Move))).thenReturn(false); assertThat(new MoveProcessor(mockNextProcessor, mockMailboxManager, mockStatusResponseFactory, new RecordingMetricFactory()) .getImplementedCapabilities(null)).isEmpty(); }
@Override public List<Capability> getImplementedCapabilities(ImapSession session) { if (moveCapabilitySupported) { return ImmutableList.of(ImapConstants.SUPPORTS_MOVE); } else { return ImmutableList.of(); } }
MoveProcessor extends AbstractMessageRangeProcessor<MoveRequest> implements CapabilityImplementingProcessor { @Override public List<Capability> getImplementedCapabilities(ImapSession session) { if (moveCapabilitySupported) { return ImmutableList.of(ImapConstants.SUPPORTS_MOVE); } else { return ImmutableList.of(); } } }
MoveProcessor extends AbstractMessageRangeProcessor<MoveRequest> implements CapabilityImplementingProcessor { @Override public List<Capability> getImplementedCapabilities(ImapSession session) { if (moveCapabilitySupported) { return ImmutableList.of(ImapConstants.SUPPORTS_MOVE); } else { return ImmutableList.of(); } } MoveProcessor(ImapProcessor next, MailboxManager mailboxManager, StatusResponseFactory factory,
            MetricFactory metricFactory); }
MoveProcessor extends AbstractMessageRangeProcessor<MoveRequest> implements CapabilityImplementingProcessor { @Override public List<Capability> getImplementedCapabilities(ImapSession session) { if (moveCapabilitySupported) { return ImmutableList.of(ImapConstants.SUPPORTS_MOVE); } else { return ImmutableList.of(); } } MoveProcessor(ImapProcessor next, MailboxManager mailboxManager, StatusResponseFactory factory,
            MetricFactory metricFactory); @Override List<Capability> getImplementedCapabilities(ImapSession session); }
MoveProcessor extends AbstractMessageRangeProcessor<MoveRequest> implements CapabilityImplementingProcessor { @Override public List<Capability> getImplementedCapabilities(ImapSession session) { if (moveCapabilitySupported) { return ImmutableList.of(ImapConstants.SUPPORTS_MOVE); } else { return ImmutableList.of(); } } MoveProcessor(ImapProcessor next, MailboxManager mailboxManager, StatusResponseFactory factory,
            MetricFactory metricFactory); @Override List<Capability> getImplementedCapabilities(ImapSession session);  }