Skip to content

Commit

Permalink
Added missing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mockitoguy committed Mar 5, 2019
1 parent cc38b6c commit d61a8be
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -123,6 +123,15 @@ public void run() {
"For more information, see the javadoc for RedundantListenerException class.");
}

@Test
public void clearing_all_mocks_is_safe_regardless_of_mock_maker_type() {
List mock = mock(List.class);

//expect
assertTrue(mockingDetails(mock).isMock());
framework.clearInlineMocks();
}

@Test
public void clears_all_mocks() {
//clearing mocks only works with inline mocking
Expand Down

0 comments on commit d61a8be

Please sign in to comment.