Use hasSize() where possible
See gh-24172
This commit is contained in:
committed by
Stephane Nicoll
parent
0a2046e81c
commit
1e83e889aa
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user