From 64e668d584b0f86a1a243290d4cb7b8f8320c7ba Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 10 May 2016 14:22:01 +0100 Subject: [PATCH] Use AssertJ in JooqExceptionTranslatorTests --- .../autoconfigure/jooq/JooqExceptionTranslatorTests.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jooq/JooqExceptionTranslatorTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jooq/JooqExceptionTranslatorTests.java index 65eb6564e57..e9f83a1223e 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jooq/JooqExceptionTranslatorTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jooq/JooqExceptionTranslatorTests.java @@ -29,9 +29,7 @@ import org.mockito.ArgumentCaptor; import org.springframework.jdbc.BadSqlGrammarException; -import static org.hamcrest.Matchers.instanceOf; -import static org.hamcrest.Matchers.is; -import static org.junit.Assert.assertThat; +import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.BDDMockito.given; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; @@ -89,7 +87,7 @@ public class JooqExceptionTranslatorTests { ArgumentCaptor captor = ArgumentCaptor .forClass(RuntimeException.class); verify(context).exception(captor.capture()); - assertThat(captor.getValue(), is(instanceOf(BadSqlGrammarException.class))); + assertThat(captor.getValue()).isInstanceOf(BadSqlGrammarException.class); } }