From 8bb7b8af51a20b4809f5fc2c910a78073cdc5099 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Sun, 3 Jun 2018 22:26:14 +0200 Subject: [PATCH] Remove usage of deprecated Matchers class Closes gh-13345 --- .../boot/SpringBootExceptionHandlerTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringBootExceptionHandlerTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringBootExceptionHandlerTests.java index 33eeaf568d..ce0f404960 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringBootExceptionHandlerTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringBootExceptionHandlerTests.java @@ -21,7 +21,6 @@ import java.lang.reflect.InvocationTargetException; 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; @@ -55,7 +54,7 @@ public class SpringBootExceptionHandlerTests { "[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 @@ -65,7 +64,7 @@ public class SpringBootExceptionHandlerTests { "[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); } }