Skip to content

Commit

Permalink
refactor(profile) : 테스트 코드 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Woongbin06 committed Apr 24, 2024
1 parent 000269f commit 4542620
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class QueryProfileServiceTest extends ServiceTest {
List<Profile> 취업한_사람_조회 = 취업한_사람만_조회();
// List<Profile> 입학년도가_2021인_사람 = 입학년도가_2021년인_사람_조회();
List<Profile> 전공이_ETC인_사람 = 전공이_ETC인_사람();
List<Profile> 전공이_GAME_혹은_BACKEND_이고_취업한_사람 = 전공이_GAME_혹은_BACKEND_이고_취업한_사람();
List<Profile> 전공이_GAME_혹은_BACKEND_이고_취업한_사람 = 전공이_BACKEND_이고_취업한_사람();

//then
assertAll(
Expand Down Expand Up @@ -94,15 +94,15 @@ public class QueryProfileServiceTest extends ServiceTest {
}

private List<Profile> 전공이_ETC인_사람() {
return queryProfileService.readAll(new Filter(null, List.of(Major.ETC), null));
return queryProfileService.readAll(new Filter(null, Major.ETC, null));
}

private List<Profile> 전공이_GAME_혹은_BACKEND_이고_취업한_사람() {
return queryProfileService.readAll(new Filter(true, List.of(Major.GAME, Major.BACKEND), null));
private List<Profile> 전공이_BACKEND_이고_취업한_사람() {
return queryProfileService.readAll(new Filter(true, Major.BACKEND, null));
}

private List<Profile> 입학년도가_2021년인_사람_조회() {
return queryProfileService.readAll(new Filter(null, null, "2021-2021"));
private List<Profile> 기수가_1인_사람_조회() {
return queryProfileService.readAll(new Filter(null, null, 1L));
}

private List<Profile> 취업한_사람만_조회() {
Expand Down

0 comments on commit 4542620

Please sign in to comment.