Skip to content

Instantly share code, notes, and snippets.

@marchermans
Created July 30, 2019 15:42
Show Gist options
  • Save marchermans/3a7f9be205f1a3acb22464ba3bdd520f to your computer and use it in GitHub Desktop.
Save marchermans/3a7f9be205f1a3acb22464ba3bdd520f to your computer and use it in GitHub Desktop.
@Test
public void removeProvider() throws Exception
{
mockStatic(ProviderHandler.class);
PowerMockito.doCallRealMethod().when(ProviderHandler.class, "removeProvider", Mockito.any(), Mockito.any());
ProviderHandler.removeProvider(requestManager, new StandardToken());
PowerMockito.verifyStatic();
ProviderHandler.removeProviderInternal(requestManager, new StandardToken());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment