Package org.apache.james.smtpserver

Examples of org.apache.james.smtpserver.POP3BeforeSMTPHandler.onConnect()


        setupMockedSMTPSession();
        POP3BeforeSMTPHelper.addIPAddress("192.168.200.1");

        assertFalse(mockedSession.isRelayingAllowed());
        handler.onConnect(mockedSession);
        assertTrue(mockedSession.isRelayingAllowed());
    }

    public void testIPGetRemoved() {
        long sleepTime = 100;
View Full Code Here


        assertFalse(mockedSession.isRelayingAllowed());

        try {
            Thread.sleep(sleepTime);
            POP3BeforeSMTPHelper.removeExpiredIP(10);
            handler.onConnect(mockedSession);
            assertFalse(mockedSession.isRelayingAllowed());

        } catch (InterruptedException e) {
            //ignore
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.