diff --git a/lib/kadai-core/src/test/java/acceptance/workbasket/update/UpdateWorkbasketAuthorizations2AccTest.java b/lib/kadai-core/src/test/java/acceptance/workbasket/update/UpdateWorkbasketAuthorizations2AccTest.java index 4c1ff007a..8ebfaa595 100644 --- a/lib/kadai-core/src/test/java/acceptance/workbasket/update/UpdateWorkbasketAuthorizations2AccTest.java +++ b/lib/kadai-core/src/test/java/acceptance/workbasket/update/UpdateWorkbasketAuthorizations2AccTest.java @@ -61,9 +61,10 @@ void testUpdatedAccessItemList_accessId_null() throws Exception { WorkbasketAccessItemImpl workbasketAccessItem = ((WorkbasketAccessItemImpl) accessItems.get(0)); workbasketAccessItem.setAccessId(null); + List workbasketAccessItems = List.of(workbasketAccessItem); assertThatThrownBy( - () -> WORKBASKET_SERVICE.setWorkbasketAccessItems(wbId, List.of(workbasketAccessItem))) + () -> WORKBASKET_SERVICE.setWorkbasketAccessItems(wbId, workbasketAccessItems)) .isInstanceOf(InvalidArgumentException.class) .hasMessageContaining("accessId is null or empty"); } @@ -77,9 +78,10 @@ void testUpdatedAccessItemList_accessId_blank() throws Exception { WorkbasketAccessItemImpl workbasketAccessItem = ((WorkbasketAccessItemImpl) accessItems.get(0)); workbasketAccessItem.setAccessId(" "); + List workbasketAccessItems = List.of(workbasketAccessItem); assertThatThrownBy( - () -> WORKBASKET_SERVICE.setWorkbasketAccessItems(wbId, List.of(workbasketAccessItem))) + () -> WORKBASKET_SERVICE.setWorkbasketAccessItems(wbId, workbasketAccessItems)) .isInstanceOf(InvalidArgumentException.class) .hasMessageContaining("accessId is null or empty"); }