com.sun.mail.pop3.POP3Store Java Examples

The following examples show how to use com.sun.mail.pop3.POP3Store. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Pop3ServerTest.java    From greenmail with Apache License 2.0 5 votes vote down vote up
@Test
public void testPop3Capabillities() throws MessagingException, UserException {
    final POP3Store store = greenMail.getPop3().createStore();
    greenMail.getManagers().getUserManager().createUser("[email protected]",
            "[email protected]", "pwd");
    store.connect("[email protected]", "pwd");
    try {
        assertTrue(store.capabilities().containsKey("UIDL"));
    } finally {
        store.close();
    }
}
 
Example #2
Source File: Pop3Server.java    From greenmail with Apache License 2.0 4 votes vote down vote up
@Override
public POP3Store createStore() throws NoSuchProviderException {
    return (POP3Store) super.createStore();
}