Toggle navigation
Home
org.apache.james.mailbox.store.mail.model.MailboxId to org.apache.james.mailbox.store.TestId
No. of Instances - 6
No. of Commits - 1
No. of Projects - {'james-project'}
Hierarchy/Composition: T_SUPER_R
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
creationRequest
to
buildFakeCreationRequest()
Cascading Type Change (Different)
SetMessagesCreationProcessor<MailboxId>
to
SetMessagesCreationProcessor<TestId>
Update Anonymous class
{ @Override protected MessageWithId<Message> createMessageInOutbox( MessageWithId.CreationMessageEntry createdEntry, MailboxSession session, Mailbox<MailboxId> outbox, Function<Long,MessageId> buildMessageIdFromUid){ return new MessageWithId<>(createdEntry.creationId,getFakeMessage()); } @Override protected Optional<Mailbox<MailboxId>> getOutbox( MailboxSession session) throws MailboxException { Mailbox<MailboxId> fakeOutbox=mock(Mailbox.class); when(fakeOutbox.getName()).thenReturn("outbox"); return Optional.of(fakeOutbox); } }
to
{ @Override protected MessageWithId<Message> createMessageInOutbox( MessageWithId.CreationMessageEntry createdEntry, MailboxSession session, Mailbox<TestId> outbox, Function<Long,MessageId> buildMessageIdFromUid){ return new MessageWithId<>(createdEntry.getCreationId(),FAKE_MESSAGE); } @Override protected Optional<Mailbox<TestId>> getOutbox( MailboxSession session) throws MailboxException { Mailbox<TestId> fakeOutbox=mock(Mailbox.class); when(fakeOutbox.getName()).thenReturn("outbox"); return Optional.of(fakeOutbox); } }