@BeforeEach void setUp() throws MailboxException { mailboxManager = new InMemoryIntegrationResources().createMailboxManager(new SimpleGroupMembershipResolver()); MailboxSessionMapperFactory mailboxSessionMapperFactory = mailboxManager.getMapperFactory(); messageSearchIndex = mock(ListeningMessageSearchIndex.class); reIndexer = new MessageIdReIndexerImpl(mailboxManager, mailboxSessionMapperFactory, messageSearchIndex); }
@BeforeEach void setUp() throws MailboxException { mailboxManager = new InMemoryIntegrationResources().createMailboxManager(new SimpleGroupMembershipResolver()); MailboxSessionMapperFactory mailboxSessionMapperFactory = mailboxManager.getMapperFactory(); messageSearchIndex = mock(ListeningMessageSearchIndex.class); reIndexer = new ReIndexerImpl(new ReIndexerPerformer(mailboxManager, messageSearchIndex, mailboxSessionMapperFactory)); }
@Override protected StoreMessageManager createMessageManager(Mailbox mailbox, MailboxSession session) { return new InMemoryMessageManager(getMapperFactory(), getMessageSearchIndex(), getEventDispatcher(), getLocker(), mailbox, getQuotaManager(), getQuotaRootResolver(), getMessageParser(), getMessageIdFactory(), getBatchSizes(), getImmutableMailboxMessageFactory(), getStoreRightManager()); } }
public static MessageIdManagerTestSystem create() throws MailboxException { InMemoryIntegrationResources inMemoryIntegrationResources = new InMemoryIntegrationResources(); InMemoryIntegrationResources.Resources resources = inMemoryIntegrationResources.createResources(new SimpleGroupMembershipResolver()); StoreMailboxManager mailboxManager = resources.getMailboxManager(); return new MessageIdManagerTestSystem( inMemoryIntegrationResources.createMessageIdManager(mailboxManager, resources.getMessageIdFactory()), resources.getMessageIdFactory(), resources.getMailboxManager().getMapperFactory(), mailboxManager); }
@Before public void before() throws Exception { session = new MockMailboxSession(USERNAME); InMemoryIntegrationResources inMemoryIntegrationResources = new InMemoryIntegrationResources(); mailboxManager = inMemoryIntegrationResources.createMailboxManager(new SimpleGroupMembershipResolver()); subscriptionManager = new StoreSubscriptionManager(mailboxManager.getMapperFactory()); testee = new DefaultMailboxesProvisioningFilter(mailboxManager, subscriptionManager, new NoopMetricFactory()); }