
Mockito를 이용해 테스트를 하던 도중 Strict stubbing argument mismatch 만나 이 오류에 대한 해결방법을 공유하고자 합니다. 먼저 소스 코드를 보면서 시작하겠습니다. @Test @DisplayName("카테고리 상품 연동 생성") void createCategoryProductTest(@Mock CategoryRepository categoryRepository, @Mock ProductRepository productRepository, @Mock CategoryProductRepository categoryProductRepository){ //Given Category category = Category.builder().categoryName("핸드폰").build(..