fixture-monkey icon indicating copy to clipboard operation
fixture-monkey copied to clipboard

Add register and select ArbitraryBuilder by name

Open mhyeon-lee opened this issue 4 years ago • 2 comments

여러 종류의 ArbitraryBuilder 를 등록하고 선택할 수 있도록 이름을 부여할 수 있도록 지원합니다.

mhyeon-lee avatar Oct 02 '21 04:10 mhyeon-lee

engine 모듈이 추가되니 선택지가 늘어난 것 같은데요. engine 모듈에서 테스트 메소드와 어노테이션 정보를 알 수 있다면 다음과 같이 처리하는 건 어떨까요?

ex)

@Test
void registerWithName(@RegisterName("deliveryNothing") DeliveryPolicy deliveryNothing){
   OrderSheet orderSheet = ...
}

seongahjo avatar Oct 02 '21 18:10 seongahjo

네 우선은 Annotation 지원보다는 programmatic 한 방법을 구현하고 Annotation 은 보조적인 방식으로 지원할 수 있게 고민하면 좋을거 같습니다.

mhyeon-lee avatar Oct 02 '21 18:10 mhyeon-lee