Skip to content

Commit

Permalink
Remove usage of deprecated Matchers class
Browse files Browse the repository at this point in the history
  • Loading branch information
dreis2211 authored and snicoll committed Jun 4, 2018
1 parent d5ccd43 commit 8bb7b8a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import org.junit.Test;

import static org.mockito.Matchers.same;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyZeroInteractions;
Expand Down Expand Up @@ -55,7 +54,7 @@ public void uncaughtExceptionForwardsLogConfigurationErrorToParent() {
"[stuff] Logback configuration error detected [stuff]");
this.handler.registerLoggedException(ex);
this.handler.uncaughtException(thread, ex);
verify(this.parent).uncaughtException(same(thread), same(ex));
verify(this.parent).uncaughtException(thread, ex);
}

@Test
Expand All @@ -65,7 +64,7 @@ public void uncaughtExceptionForwardsWrappedLogConfigurationErrorToParent() {
"[stuff] Logback configuration error detected [stuff]", new Exception()));
this.handler.registerLoggedException(ex);
this.handler.uncaughtException(thread, ex);
verify(this.parent).uncaughtException(same(thread), same(ex));
verify(this.parent).uncaughtException(thread, ex);
}

}

0 comments on commit 8bb7b8a

Please sign in to comment.