Skip to content

Commit

Permalink
v1.3.5 (#25)
Browse files Browse the repository at this point in the history
v1.3.5
  • Loading branch information
wugawuga authored Mar 16, 2024
2 parents b435aae + 2f712af commit 6f2db64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public ResponseEntity<Void> toggleLikeReview(@PathVariable final Long productId,
@AuthenticationPrincipal final LoginInfo loginInfo,
@RequestBody @Valid final ReviewFavoriteRequest request) {
reviewService.likeReview(reviewId, loginInfo.getId(), request);
reviewService.updateProductImage(productId);

return ResponseEntity.noContent().build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,26 +287,6 @@ class toggleLikeReview_์„ฑ๊ณต_ํ…Œ์ŠคํŠธ {
// then
STATUS_CODE๋ฅผ_๊ฒ€์ฆํ•œ๋‹ค(์‘๋‹ต, ์ •์ƒ_์ฒ˜๋ฆฌ_NO_CONTENT);
}

@Test
void ์ƒํ’ˆ_์ด๋ฏธ์ง€๊ฐ€_์กด์žฌํ•˜๋Š”_์ข‹์•„์š”๋ฅผ_๊ฐ€์žฅ_๋งŽ์ด_๋ฐ›์€_๋ฆฌ๋ทฐ๋กœ_์ƒํ’ˆ_์ด๋ฏธ์ง€๊ฐ€_๋ฐ”๋€๋‹ค() {
// given
final var ์นดํ…Œ๊ณ ๋ฆฌ = ์นดํ…Œ๊ณ ๋ฆฌ_์ฆ‰์„์กฐ๋ฆฌ_์ƒ์„ฑ();
๋‹จ์ผ_์นดํ…Œ๊ณ ๋ฆฌ_์ €์žฅ(์นดํ…Œ๊ณ ๋ฆฌ);
final var ์ƒํ’ˆ = ๋‹จ์ผ_์ƒํ’ˆ_์ €์žฅ(์ƒํ’ˆ_์‚ผ๊ฐ๊น€๋ฐฅ_๊ฐ€๊ฒฉ1000์›_ํ‰์ 3์ _์ƒ์„ฑ(์นดํ…Œ๊ณ ๋ฆฌ));
final var ํƒœ๊ทธ = ๋‹จ์ผ_ํƒœ๊ทธ_์ €์žฅ(ํƒœ๊ทธ_๋ง›์žˆ์–ด์š”_TASTE_์ƒ์„ฑ());
๋ฆฌ๋ทฐ_์ž‘์„ฑ_์š”์ฒญ(๋กœ๊ทธ์ธ_์ฟ ํ‚ค_ํš๋“(๋ฉค๋ฒ„1), ์ƒํ’ˆ, ์‚ฌ์ง„_๋ช…์„ธ_์š”์ฒญ(์ด๋ฏธ์ง€1), ๋ฆฌ๋ทฐ์ถ”๊ฐ€์š”์ฒญ_์žฌ๊ตฌ๋งคO_์ƒ์„ฑ(์ ์ˆ˜_4์ , List.of(ํƒœ๊ทธ)));
๋ฆฌ๋ทฐ_์ž‘์„ฑ_์š”์ฒญ(๋กœ๊ทธ์ธ_์ฟ ํ‚ค_ํš๋“(๋ฉค๋ฒ„1), ์ƒํ’ˆ, ์‚ฌ์ง„_๋ช…์„ธ_์š”์ฒญ(์ด๋ฏธ์ง€2), ๋ฆฌ๋ทฐ์ถ”๊ฐ€์š”์ฒญ_์žฌ๊ตฌ๋งคO_์ƒ์„ฑ(์ ์ˆ˜_1์ , List.of(ํƒœ๊ทธ)));

๋ฆฌ๋ทฐ_์ข‹์•„์š”_์š”์ฒญ(๋กœ๊ทธ์ธ_์ฟ ํ‚ค_ํš๋“(๋ฉค๋ฒ„1), ์ƒํ’ˆ, ๋ฆฌ๋ทฐ2, ๋ฆฌ๋ทฐ์ข‹์•„์š”์š”์ฒญ_์ƒ์„ฑ(์ข‹์•„์š”O));

// when
final var ์‘๋‹ต = ์ƒํ’ˆ_์ƒ์„ธ_์กฐํšŒ_์š”์ฒญ(์ƒํ’ˆ);

// then
STATUS_CODE๋ฅผ_๊ฒ€์ฆํ•œ๋‹ค(์‘๋‹ต, ์ •์ƒ_์ฒ˜๋ฆฌ);
์ƒํ’ˆ_์‚ฌ์ง„์„_๊ฒ€์ฆํ•œ๋‹ค(์‘๋‹ต, "2.png");
}
}

@Nested
Expand Down

0 comments on commit 6f2db64

Please sign in to comment.