@Test public void removeConnections() { SocialUserConnection facebookConnection = insertFacebookConnection(); insertFacebookConnection2(); assertThat(socialUserConnectionRepository.findOne(facebookConnection.getId())).isNotNull(); connectionRepository.removeConnections("facebook"); assertThat(socialUserConnectionRepository.findOne(facebookConnection.getId())).isNull(); }
@Test public void removeConnectionsToProviderNoOp() { connectionRepository.removeConnections("twitter"); }