/**
* @throws Exception
*/
@Test
public void testCredentialsDeleted() throws Exception {
IConnectionService conManager = Owl.getConnectionService();
URI feedUrl = new URI("http://www.rssowl.org/rssowl2dg/tests/connection/authrequired/feed_rdf.xml");
IFeed feed = new Feed(feedUrl);
DynamicDAO.save(feed);
ICredentials authCreds = new ICredentials() {
public String getDomain() {
return null;
}
public String getPassword() {
return null;
}
public String getUsername() {
return null;
}
};
conManager.getCredentialsProvider(feedUrl).setAuthCredentials(authCreds, feedUrl, null);
assertNotNull(conManager.getAuthCredentials(feedUrl, null));
DynamicDAO.delete(new FeedLinkReference(feedUrl).resolve());
assertNull(conManager.getAuthCredentials(feedUrl, null));
}