Package org.apache.james.mailbox.mock

Examples of org.apache.james.mailbox.mock.MockMailboxSession


    public abstract SubscriptionManager createSubscriptionManager();
   
    @Test
    public void testSubscriptionManager() throws Exception {
        SubscriptionManager manager = createSubscriptionManager();
        MailboxSession session = new MockMailboxSession(USER1);
        manager.startProcessingRequest(session);
       
        Assert.assertTrue(manager.subscriptions(session).isEmpty());
       
        manager.subscribe(session, MAILBOX1);
View Full Code Here


        clearTables();
        conf = CLUSTER.getConf();
        uidProvider = new HBaseUidProvider(conf);
        modSeqProvider = new HBaseModSeqProvider(conf);
        generateTestData();
        final MailboxSession session = new MockMailboxSession("ieugen");
        messageMapper = new HBaseMessageMapper(session, uidProvider, modSeqProvider, conf);
        for (int i = 0; i < MESSAGE_NO.size(); i++) {
            messageMapper.add(MBOXES.get(1), MESSAGE_NO.get(i));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.mock.MockMailboxSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.