Commit 8bb7b8af authored by dreis2211's avatar dreis2211 Committed by Stephane Nicoll

Remove usage of deprecated Matchers class

Closes gh-13345
parent d5ccd43f
...@@ -21,7 +21,6 @@ import java.lang.reflect.InvocationTargetException; ...@@ -21,7 +21,6 @@ import java.lang.reflect.InvocationTargetException;
import org.junit.Test; import org.junit.Test;
import static org.mockito.Matchers.same;
import static org.mockito.Mockito.mock; import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyZeroInteractions; import static org.mockito.Mockito.verifyZeroInteractions;
...@@ -55,7 +54,7 @@ public class SpringBootExceptionHandlerTests { ...@@ -55,7 +54,7 @@ public class SpringBootExceptionHandlerTests {
"[stuff] Logback configuration error detected [stuff]"); "[stuff] Logback configuration error detected [stuff]");
this.handler.registerLoggedException(ex); this.handler.registerLoggedException(ex);
this.handler.uncaughtException(thread, ex); this.handler.uncaughtException(thread, ex);
verify(this.parent).uncaughtException(same(thread), same(ex)); verify(this.parent).uncaughtException(thread, ex);
} }
@Test @Test
...@@ -65,7 +64,7 @@ public class SpringBootExceptionHandlerTests { ...@@ -65,7 +64,7 @@ public class SpringBootExceptionHandlerTests {
"[stuff] Logback configuration error detected [stuff]", new Exception())); "[stuff] Logback configuration error detected [stuff]", new Exception()));
this.handler.registerLoggedException(ex); this.handler.registerLoggedException(ex);
this.handler.uncaughtException(thread, ex); this.handler.uncaughtException(thread, ex);
verify(this.parent).uncaughtException(same(thread), same(ex)); verify(this.parent).uncaughtException(thread, ex);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment