Skip to content

Commit

Permalink
test: Seller Servie 분리에 따른 productTest 의존성 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogu1208 committed Aug 17, 2024
1 parent 099afcc commit 1a3506d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class ProductApplicationServiceTest {
@InjectMocks
private lateinit var productApplicationService: ProductApplicationService

@InjectMocks
private lateinit var productSellerApplicationService: ProductSellerApplicationService

@Disabled
@DisplayName("유효한 ProductCreateRequest가 들어오면 상품 생성에 성공한다.")
@Test
Expand Down Expand Up @@ -73,7 +76,7 @@ class ProductApplicationServiceTest {
given(productService.getProductById(productId)).willReturn(mockProduct)

// when
productApplicationService.updateProductDisplayStatus(productId, displayStatus)
productSellerApplicationService.updateProductDisplayStatus(productId, displayStatus)

// then
verify(productService).getProductById(productId)
Expand All @@ -92,7 +95,7 @@ class ProductApplicationServiceTest {
given(itemService.getItemByIdAndProductId(itemId, productId)).willReturn(mockItem)

// when
productApplicationService.updateItemDisplayStatus(productId, itemId, displayStatus)
productSellerApplicationService.updateItemDisplayStatus(productId, itemId, displayStatus)

// then
verify(itemService).getItemByIdAndProductId(itemId, productId)
Expand Down

0 comments on commit 1a3506d

Please sign in to comment.