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 CollectionIntrospector #927

Closed wicksome closed 5 months ago

wicksome commented 7 months ago

Summary

Describe what feature is implemented by this PR. If there is a related issue, write the issue number and link

kotlin에서 Collection 타입을 프로퍼티로 가진 interface의 구현체인 data class에 대한 픽스처 생성시 동작하지 않는 점을 수정했습니다. Collection 타입일 경우 List, Map, Set 등 어떤것으로 정의해야할지 몰라서 우선 List를 사용했습니다.

(Optional): Description

Describe your changes in detail

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

로컬 환경에서 테스트 코드 추가해서 확인했습니다.

Is the Document updated?

We recommend that the corresponding documentation for this feature or change is updated within the pull request If the update is scheduled for later, please specify and add the necessary information to the discussion page.

seongahjo commented 5 months ago

@wicksome 1.0.16부터 pushExactTypePropertyCandidateResolver 옵션을 통해 Collection의 구현체를 결정할 수 있으므로 이 PR은 닫겠습니다.