Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public StudyPreviewDTO findLikedStudies(Long memberId, Pageable pageable) {
public StudyPreviewDTO findStudiesByKeyword(Pageable pageable,
String keyword, StudySortBy sortBy) {
// 키워드로 스터디 조회
List<Study> studies = studyRepository.searchByTitle(keyword, sortBy, pageable);
List<Study> studies = studyRepository.findAllByTitleContaining(keyword, sortBy, pageable);

// 조회된 스터디가 없을 경우
if (studies.isEmpty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ void findStudiesByKeyword() {
String keyword = "English";
StudySortBy sortBy = StudySortBy.ALL;

when(studyRepository.searchByTitle(keyword, sortBy, pageable))
when(studyRepository.findAllByTitleContaining(keyword, sortBy, pageable))
.thenReturn(List.of(study1));
when(studyRepository.countAllByTitleContaining(keyword, sortBy))
.thenReturn(1L);
Expand All @@ -1589,7 +1589,7 @@ void findStudiesByKeyword() {
// then
assertNotNull(result);
assertEquals(1, result.getTotalElements());
verify(studyRepository).searchByTitle(keyword, sortBy, pageable);
verify(studyRepository).findAllByTitleContaining(keyword, sortBy, pageable);
}

@Test
Expand All @@ -1599,7 +1599,7 @@ void findStudiesByKeyword() {
String keyword = "English";
StudySortBy sortBy = StudySortBy.ALL;

when(studyRepository.searchByTitle(keyword, sortBy, pageable))
when(studyRepository.findAllByTitleContaining(keyword, sortBy, pageable))
.thenReturn(List.of());

// when & then
Expand Down
Loading