-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from ClothingStoreService/test/order-integration
주문 통합테스트 구현
- Loading branch information
Showing
21 changed files
with
735 additions
and
36 deletions.
There are no files selected for viewing
File renamed without changes.
6 changes: 1 addition & 5 deletions
6
src/main/kotlin/org/store/clothstar/member/AccountValidateUtil.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,4 @@ class Address( | |
|
||
@Embedded | ||
val addressInfo: AddressInfo, | ||
) : BaseEntity() { | ||
} | ||
) : BaseEntity() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,6 @@ from address; | |
select * | ||
from member; | ||
select * | ||
from seller; | ||
from seller; | ||
select * | ||
from category; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package org.store.clothstar.member.util | ||
|
||
import org.store.clothstar.member.domain.Account | ||
import org.store.clothstar.member.domain.Member | ||
import org.store.clothstar.member.domain.MemberRole | ||
import org.store.clothstar.member.domain.* | ||
import org.store.clothstar.member.domain.vo.AddressInfo | ||
import org.store.clothstar.member.domain.vo.MemberShoppingActivity | ||
import org.store.clothstar.member.dto.request.CreateAddressRequest | ||
import org.store.clothstar.member.dto.request.CreateMemberRequest | ||
import org.store.clothstar.member.dto.request.CreateSellerRequest | ||
import org.store.clothstar.member.dto.request.MemberLoginRequest | ||
|
||
|
||
class CreateObject { | ||
companion object { | ||
private const val email = "[email protected]" | ||
|
@@ -44,12 +42,33 @@ class CreateObject { | |
|
||
fun getMember(): Member { | ||
return Member( | ||
memberId = 1L, | ||
telNo = "010-1234-4444", | ||
name = "현수", | ||
memberShoppingActivity = MemberShoppingActivity.init() | ||
) | ||
} | ||
|
||
fun getAddress(): Address { | ||
return Address( | ||
addressId = 1L, | ||
receiverName = "현수", | ||
telNo = "010-1234-4444", | ||
memberId = this.getMember().memberId!!, | ||
deliveryRequest = "문 앞에 놔주세요", | ||
addressInfo = AddressInfo.init() | ||
) | ||
} | ||
|
||
fun getSeller(): Seller { | ||
return Seller( | ||
memberId = this.getMember().memberId!!, | ||
brandName = "나이키", | ||
bizNo = "123-123", | ||
totalSellPrice = 1000 | ||
) | ||
} | ||
|
||
fun getAccount(userId: Long): Account { | ||
return Account( | ||
email = email, | ||
|
11 changes: 11 additions & 0 deletions
11
src/test/kotlin/org/store/clothstar/member/util/OrderComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.store.clothstar.member.util | ||
|
||
import org.store.clothstar.order.domain.Order | ||
import org.store.clothstar.product.domain.Item | ||
import org.store.clothstar.product.domain.Product | ||
|
||
class OrderComponent( | ||
val order: Order, | ||
val product: Product, | ||
val item: Item | ||
) |
Oops, something went wrong.