@Test(expected = CertificateValidationException.class) public void checkSettings_withSslException_shouldThrowCertificateValidationException() throws Exception { WebDavStore webDavStore = createDefaultWebDavStore(); ArgumentCaptor<HttpGeneric> requestCaptor = ArgumentCaptor.forClass(HttpGeneric.class); when(mockHttpClient.executeOverride(requestCaptor.capture(), any(HttpContext.class))) .thenThrow(new SSLException("Test")); webDavStore.checkSettings(); }
@Override public void checkSettings() throws MessagingException { authenticate(); }
WebDavStore extends RemoteStore { @Override public void checkSettings() throws MessagingException { authenticate(); } }
WebDavStore extends RemoteStore { @Override public void checkSettings() throws MessagingException { authenticate(); } WebDavStore(StoreConfig storeConfig, QMailHttpClientFactory clientFactory); }
WebDavStore extends RemoteStore { @Override public void checkSettings() throws MessagingException { authenticate(); } WebDavStore(StoreConfig storeConfig, QMailHttpClientFactory clientFactory); static WebDavStoreSettings decodeUri(String uri); static String createUri(ServerSettings server); @Override void checkSettings(); @Override @NonNull List<? extends Folder> getFolders(boolean forceListAll); @NonNull @Override List<? extends Folder> getSubFolders(String parentFolderId, boolean forceListAll); @Override @NonNull WebDavFolder getFolder(String name); @Override boolean isMoveCapable(); @Override boolean isCopyCapable(); CookieStore getAuthCookies(); String getAlias(); String getUrl(); QMailHttpClient getHttpClient(); String getAuthString(); @Override boolean isSendCapable(); @Override void sendMessages(List<? extends Message> messages); }
WebDavStore extends RemoteStore { @Override public void checkSettings() throws MessagingException { authenticate(); } WebDavStore(StoreConfig storeConfig, QMailHttpClientFactory clientFactory); static WebDavStoreSettings decodeUri(String uri); static String createUri(ServerSettings server); @Override void checkSettings(); @Override @NonNull List<? extends Folder> getFolders(boolean forceListAll); @NonNull @Override List<? extends Folder> getSubFolders(String parentFolderId, boolean forceListAll); @Override @NonNull WebDavFolder getFolder(String name); @Override boolean isMoveCapable(); @Override boolean isCopyCapable(); CookieStore getAuthCookies(); String getAlias(); String getUrl(); QMailHttpClient getHttpClient(); String getAuthString(); @Override boolean isSendCapable(); @Override void sendMessages(List<? extends Message> messages);  }