naver / fixture-monkey

Let Fixture Monkey generate test instances including edge cases automatically
https://naver.github.io/fixture-monkey
Apache License 2.0
560 stars 89 forks source link

Add FieldReflectionArbitrary usage summary for kor/en documents #964

Closed YunNote closed 6 months ago

YunNote commented 6 months ago

Summary

961

FieldReflectionArbitrary 클래스의 사용법에 대한 내용 수정입니다.

https://naver.github.io/fixture-monkey/v1-0-0/docs/generating-objects/introspector/#fieldreflectionarbitraryintrospector

FieldReflectionArbitrary의 사용법중 getter or setter이 필수 구현되어야 한다고 되어있지만, final 로 선언되지 않은 필드에 대해서는 리플렉션 사용이 가능하여 getter or setter 없이도 객체 생성이 가능.

따라서 FieldReflectionArbitrary 의 설명 하단에 final로 선언되지 않은 필드에 대해서는 getter or setter 없이 사용 가능하다고 설명 추가. (영문 문서 및 한글 문서)

How Has This Been Tested?

Introspector FieldReflectionArbitrary 선언 후 가변 클래스에 대해 테스트중 발견

Is the Document updated?

yes

CLAassistant commented 6 months ago

CLA assistant check
All committers have signed the CLA.