-
Unnecessary stubbings detected. Clean & maintainable test code requires zero unnecessary code. Following stubbings are unnecessary에러 일기 2023. 2. 9. 16:37
필요없는 When을 지우라는 뜻이다. when을 잘못 썼으니까 필요없어진 것 같다. when 안에서 조회하는 Repository.findAll() 같은 메서드 안에 매개변수를 잘 넣어줬는지 확인한다. Sevice쪽 해당 메서드 들어가서 Repository.findAll()에 매개변수와 다를것이다.
'에러 일기' 카테고리의 다른 글
Ambiguous mapping. Cannot map '' method (0) 2023.02.12 Unable to locate Attribute with the the given name [id] on this ManagedType (0) 2023.02.12 Cannot instantiate @InjectMocks field named ''! Cause: the type '' is an interface. (0) 2023.02.09 not-null property references a null or transient value (0) 2023.02.09 Ambiguous mapping. Cannot map '’ method (0) 2023.02.08