You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given type class joyson.fixturemonkey.ProductWithValidation could not be generated. Check the ArbitraryIntrospector used or the APIs used in the ArbitraryBuilder.
java.lang.IllegalArgumentException: Given type class joyson.fixturemonkey.ProductWithValidation could not be generated. Check the ArbitraryIntrospector used or the APIs used in the ArbitraryBuilder.
해당 에러를 발생 시키는데 놓친 부분이 있을까요??
public record ProductWithValidation(@Min(1) longid, @NotBlankStringproductName, @Max(100000) longprice,
@Size(min = 3) List<@NotBlankString> options, @PastInstantcreatedAt) {
}
위와 같이 레코드로 변환시
테스트를 잘 통과합니다.
좋은 라이브러리 감사합니다!
The text was updated successfully, but these errors were encountered:
안녕하세요!
이번에 동적 테스팅 에 흥미가 생겨 학습을 하던 중
공식 문서를 따라할 때 문제점이 발생해 질문합니다.
문제점
https://naver.github.io/fixture-monkey/v1-0-0-kor/docs/get-started/adding-bean-validation/
해당 링크에서 나와있는 대로
의존성
lombok.config 설정
lombok.anyConstructor.addConstructorProperties=true
객체
테스트 코드
실행 시 15~17번 가량의 테스트가 실패하며
해당 에러를 발생 시키는데 놓친 부분이 있을까요??
위와 같이 레코드로 변환시
테스트를 잘 통과합니다.
좋은 라이브러리 감사합니다!
The text was updated successfully, but these errors were encountered: