Skip to content

Commit

Permalink
[Fix] : 테스트 서버 의존성으로 인한 통합테스트 주석 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
elyudwo committed Feb 12, 2024
1 parent 298135f commit da2d5a0
Showing 1 changed file with 35 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,38 @@

import static org.assertj.core.api.Assertions.assertThat;

@SpringBootTest
public class ApplyServiceIntegrationTest {

@Autowired
ApplyService applyService;

@Autowired
UserRepository userRepository;

@Autowired
ApplyRepository applyRepository;

@Autowired
StudyRepository studyRepository;

@Test
@Disabled
void 내가_신청한_스터디목록_조회() {
UserEntity user = UserEntityFixture.YEONGJAE.UserEntity_생성();
StudyEntity study = studyRepository.save(StudyEntityFixture.INU.studyEntity_생성());
userRepository.save(user);
applyRepository.save(ApplyEntity.builder()
.userId(user.getId()).introduce("안녕")
.studyId(study.getId())
.inspection(Inspection.ACCEPT)
.build());


FindMyRequestApplyResponse applyResponse = applyService.getMyRequestApply(new UserId(user.getId()), 0, 3);
RequestApplyData applyData = applyResponse.getRequestStudyData().getContent().get(0);

assertThat(applyData.getInspection()).isEqualTo(Inspection.ACCEPT);
assertThat(applyData.getIntroduce()).isEqualTo("안녕");

}
}
//@SpringBootTest
//public class ApplyServiceIntegrationTest {
//
// @Autowired
// ApplyService applyService;
//
// @Autowired
// UserRepository userRepository;
//
// @Autowired
// ApplyRepository applyRepository;
//
// @Autowired
// StudyRepository studyRepository;
//
// @Test
// void 내가_신청한_스터디목록_조회() {
// UserEntity user = UserEntityFixture.YEONGJAE.UserEntity_생성();
// StudyEntity study = studyRepository.save(StudyEntityFixture.INU.studyEntity_생성());
// userRepository.save(user);
// applyRepository.save(ApplyEntity.builder()
// .userId(user.getId()).introduce("안녕")
// .studyId(study.getId())
// .inspection(Inspection.ACCEPT)
// .build());
//
//
// FindMyRequestApplyResponse applyResponse = applyService.getMyRequestApply(new UserId(user.getId()), 0, 3);
// RequestApplyData applyData = applyResponse.getRequestStudyData().getContent().get(0);
//
// assertThat(applyData.getInspection()).isEqualTo(Inspection.ACCEPT);
// assertThat(applyData.getIntroduce()).isEqualTo("안녕");
//
// }
//}

0 comments on commit da2d5a0

Please sign in to comment.