Skip to content

Commit

Permalink
Resetting static mock
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hare <chris.hare@consensys.net>
  • Loading branch information
Christopher Hare committed Oct 2, 2019
1 parent 4175e5f commit be81a75
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
Expand Down Expand Up @@ -1500,6 +1501,8 @@ public void disabledMethod() throws Exception {

verify(rpcMethods).containsKey(methodName);
verify(rpcMethods).get(methodName);

reset(rpcMethods);
}

@Test
Expand Down

0 comments on commit be81a75

Please sign in to comment.