Skip to content

Commit

Permalink
test: 테스트 오류 수정
Browse files Browse the repository at this point in the history
- 이전커밋과 같이 revert하기
  • Loading branch information
hong-sile committed Aug 28, 2024
1 parent 8b03112 commit 83054a0
Showing 1 changed file with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package play.pluv.progress.application;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static play.pluv.fixture.MemberEntityFixture.멤버_홍혁준;
import static play.pluv.fixture.TransferContextFixture.musicTransferContext;
import static play.pluv.fixture.TransferContextFixture.이전실패_음악_목록;
import static play.pluv.fixture.TransferContextFixture.이전한_음악_목록;
import static play.pluv.playlist.domain.MusicStreaming.APPLE;
import static play.pluv.progress.exception.ProgressExceptionType.NOT_FINISHED_TRANSFER_PROGRESS;

import java.util.List;
import org.junit.jupiter.api.BeforeEach;
Expand All @@ -28,7 +26,6 @@
import play.pluv.progress.domain.TransferFailMusicInContext;
import play.pluv.progress.domain.TransferProgress;
import play.pluv.progress.domain.TransferredMusicInContext;
import play.pluv.progress.exception.ProgressException;
import play.pluv.support.ApplicationTest;

class MusicTransferContextManagerTest extends ApplicationTest {
Expand Down Expand Up @@ -70,17 +67,17 @@ void setUp() {
.isEqualTo(transferContext);
}

@Test
void 이전이_완료되지않은상태에서_동일한_멤버가_Init을_하면_예외처리한다() {
final var transferFailMusics = 이전실패_음악_목록();
final var transferContext = musicTransferContext(10, memberId, transferFailMusics);

manager.initContext(transferContext);

assertThatThrownBy(() -> manager.initContext(transferContext))
.isInstanceOf(ProgressException.class)
.hasMessage(NOT_FINISHED_TRANSFER_PROGRESS.getMessage());
}
// @Test
// void 이전이_완료되지않은상태에서_동일한_멤버가_Init을_하면_예외처리한다() {
// final var transferFailMusics = 이전실패_음악_목록();
// final var transferContext = musicTransferContext(10, memberId, transferFailMusics);
//
// manager.initContext(transferContext);
//
// assertThatThrownBy(() -> manager.initContext(transferContext))
// .isInstanceOf(ProgressException.class)
// .hasMessage(NOT_FINISHED_TRANSFER_PROGRESS.getMessage());
// }

@Test
void 히스토리를_만들면_context에서_값을_제거한다() {
Expand Down

0 comments on commit 83054a0

Please sign in to comment.