Use hasSize() where possible

See gh-24172
This commit is contained in:
Johnny Lim
2019-12-10 12:35:32 +09:00
committed by Stephane Nicoll
parent 0a2046e81c
commit 1e83e889aa
8 changed files with 10 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ class RequestScopedControllerAdviceIntegrationTests {
assertThatCode(context::refresh).doesNotThrowAnyException();
List<ControllerAdviceBean> adviceBeans = ControllerAdviceBean.findAnnotatedBeans(context);
assertThat(adviceBeans).size().isEqualTo(1);
assertThat(adviceBeans).hasSize(1);
assertThat(adviceBeans.get(0))//
.returns(RequestScopedControllerAdvice.class, ControllerAdviceBean::getBeanType)//
.returns(42, ControllerAdviceBean::getOrder);