@Override protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException { return new NamespaceRequest(command, tag); } }
/** * @see * org.apache.james.imap.decode.base.AbstractImapCommandParser#decode(org.apache.james.imap.api.ImapCommand, * org.apache.james.imap.decode.ImapRequestLineReader, java.lang.String, * org.apache.james.imap.api.process.ImapSession) */ protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, String tag, ImapSession session) throws DecodingException { return new NamespaceRequest(command, tag); } }
@Before public void setUp() throws Exception { sharedSpaces = new ArrayList<>(); statusResponseStub = mock(StatusResponseFactory.class); mailboxManagerStub = mock(MailboxManager.class); subject = new NamespaceProcessor(mock(ImapProcessor.class), mailboxManagerStub, statusResponseStub, new NoopMetricFactory()); imapSessionStub = mock(ImapSession.class); mailboxSessionStub = mock(MailboxSession.class); namespaceRequest = new NamespaceRequest(ImapCommand.anyStateCommand("Name"), "TAG"); }