use of com.fsck.k9.mail.store.StoreConfig in project k-9 by k9mail.
the class SmtpTransportTest method SmtpTransport_withInvalidTransportUri_shouldThrow.
@Test(expected = MessagingException.class)
public void SmtpTransport_withInvalidTransportUri_shouldThrow() throws Exception {
StoreConfig storeConfig = createStoreConfigWithTransportUri("smpt://");
new SmtpTransport(storeConfig, socketFactory, oAuth2TokenProvider);
}
use of com.fsck.k9.mail.store.StoreConfig in project k-9 by k9mail.
the class ImapStoreTest method createStoreConfig.
private StoreConfig createStoreConfig() {
StoreConfig storeConfig = mock(StoreConfig.class);
when(storeConfig.getInboxFolderName()).thenReturn("INBOX");
when(storeConfig.getStoreUri()).thenReturn("imap://user:password@imap.example.org");
return storeConfig;
}
use of com.fsck.k9.mail.store.StoreConfig in project k-9 by k9mail.
the class ImapStoreTest method setUp.
@Before
public void setUp() throws Exception {
storeConfig = createStoreConfig();
TrustedSocketFactory trustedSocketFactory = mock(TrustedSocketFactory.class);
ConnectivityManager connectivityManager = mock(ConnectivityManager.class);
OAuth2TokenProvider oauth2TokenProvider = mock(OAuth2TokenProvider.class);
imapStore = new TestImapStore(storeConfig, trustedSocketFactory, connectivityManager, oauth2TokenProvider);
}
Aggregations