-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 더미 Basket은 조회되지 않도록 수정 * docs: 테스트 픽스처 주석 추가
- Loading branch information
Showing
5 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
src/test/java/kr/allcll/seatfinder/support/fixture/BasketFixture.java
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,18 @@ | ||
package kr.allcll.seatfinder.support.fixture; | ||
|
||
import kr.allcll.seatfinder.basket.Basket; | ||
import kr.allcll.seatfinder.subject.Subject; | ||
|
||
public class BasketFixture { | ||
|
||
/* | ||
빈 Basket은 아래와 같이 생성됩니다. | ||
0과 null로 초기화된 필드는 수정하면 안됩니다. | ||
위 기준은 실제 API 요청으로 만들었습니다. | ||
*/ | ||
public static Basket createEmptyBasket(Subject subject) { | ||
return new Basket(subject, null, null, "", "", null, null, | ||
null, null, null, null, 99, 0, 0, | ||
0, 99, null, 0); | ||
} | ||
} |