Skip to content

Commit

Permalink
Merge pull request gutanbug#79 from gutanbug/dev
Browse files Browse the repository at this point in the history
style: 테스트 코드에서 의미없는 주석 삭제
  • Loading branch information
kjungw1025 authored Mar 21, 2024
2 parents 3202b0c + 0f9e357 commit b6473ba
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,11 @@ void cancelMission_1() {
User user = UserMock.create(team, UserRole.MENTOR, passwordEncoder);
Mission mission = MissionMock.create();
team.addScore(mission.getPoint());
// CompletedMission completedMission = CompletedMissionMock.create(team, mission, false);
MissionBoard missionBoard = MissionBoardMock.create(user, mission.getId(),false, RegisterStatus.ACCEPTED);

ReflectionTestUtils.setField(missionBoard, "id", 1L);
ReflectionTestUtils.setField(team, "id", 2L);
ReflectionTestUtils.setField(mission, "id", 3L);
// ReflectionTestUtils.setField(completedMission, "team", team);
// ReflectionTestUtils.setField(completedMission, "mission", mission);

when(missionBoardRepository.findById(any())).thenReturn(Optional.of(missionBoard));
when(missionRepository.findById(any())).thenReturn(Optional.of(mission));
Expand Down

0 comments on commit b6473ba

Please sign in to comment.