Skip to content

Commit

Permalink
test: 생성자에 missionUrl 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yechop committed Oct 11, 2024
1 parent 490bd0e commit e2bc7e4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ void exist_pair_room_false() {
void delete_pair_room() {
// given
final PairRoomCreateResponse accessCode =
createPairRoom(new PairRoomCreateRequest("레디", "프람", 1000L, 100L, "IN_PROGRESS"));
createPairRoom(
new PairRoomCreateRequest("레디", "프람", 1000L, 100L, "https://missionUrl.xxx", "IN_PROGRESS"));

// when & then
RestAssured
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ ReferenceLinkResponse createReferenceLink(final String url, String accessCodeTex
void delete_reference_link_request() {
// given
final PairRoomCreateResponse pairRoom =
createPairRoom(new PairRoomCreateRequest("레모네", "프람", 1000L, 1000L, "IN_PROGRESS"));
createPairRoom(
new PairRoomCreateRequest("레모네", "프람", 1000L, 1000L, "https://missionUrl.xxx", "IN_PROGRESS"));

final ReferenceLinkResponse response = createReferenceLink("http://www.delete.com", pairRoom.accessCode(),
"카테고리 이름");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void pairRoomEntityStatusIsDelete() {
final PairRoomEntity sut = PairRoomEntity.from(
new PairRoom(PairRoomStatus.DELETED,
new Pair(new PairName("navi"), new PairName("dri")),
new MissionUrl("https://missionUrl.xxx"),
new AccessCode("access"))
);

Expand All @@ -72,6 +73,7 @@ void pairRoomEntityStatusIsNotDelete() {
final PairRoomEntity sut = PairRoomEntity.from(
new PairRoom(PairRoomStatus.IN_PROGRESS,
new Pair(new PairName("navi"), new PairName("dri")),
new MissionUrl("https://missionUrl.xxx"),
new AccessCode("access"))
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void throw_exception_when_find_delete_pair_room_access_code() {
// given
final PairRoomCreateRequest request =
new PairRoomCreateRequest("레디", "프람", 1000L, 100L,
PairRoomStatus.DELETED.name());
"https://missionUrl.xxx", PairRoomStatus.DELETED.name());
final String accessCode = pairRoomService.savePairRoom(request, null);

// when & then
Expand Down Expand Up @@ -128,7 +128,8 @@ void update_pair_room_status() {
void update_delete_pair_room_status() {
// given
final PairRoomCreateRequest request =
new PairRoomCreateRequest("레디", "프람", 1000L, 100L, PairRoomStatus.DELETED.name());
new PairRoomCreateRequest("레디", "프람", 1000L, 100L, "https://missionUrl.xxx",
PairRoomStatus.DELETED.name());
final String accessCode = pairRoomService.savePairRoom(request, null);

// when & then
Expand Down Expand Up @@ -164,6 +165,7 @@ void change_delete_pair_room_role() {
final PairRoomEntity entity = PairRoomEntity.from(
new PairRoom(PairRoomStatus.DELETED,
new Pair(new PairName("fram"), new PairName("lemonL")),
new MissionUrl("https://missionUrl.xxx"),
new AccessCode("1234"))
);
pairRoomRepository.save(entity);
Expand Down Expand Up @@ -191,7 +193,7 @@ void find_rooms_by_member() {
pairRoomService.savePairRoom(pairRoomCreateRequest, null);

final PairRoomCreateRequest deletePairRoomCreateRequest = new PairRoomCreateRequest("레디", "잉크", 1, 1,
PairRoomStatus.DELETED.name());
"https://missionUrl.xxx", PairRoomStatus.DELETED.name());
pairRoomService.savePairRoom(deletePairRoomCreateRequest, memberA.getAccessToken());
pairRoomService.savePairRoom(deletePairRoomCreateRequest, memberA.getAccessToken());
pairRoomService.savePairRoom(deletePairRoomCreateRequest, memberA.getAccessToken());
Expand Down

0 comments on commit e2bc7e4

Please sign in to comment.