-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: memberActivity APi 반환값 Activity id로 변경
Fix/#840 member acitivity id 반환값 변경
- Loading branch information
Showing
7 changed files
with
90 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...emm-sale/src/test/java/com/emmsale/member/application/MemberActivityQueryServiceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.emmsale.member.application; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import com.emmsale.activity.application.dto.ActivityResponse; | ||
import com.emmsale.helper.ServiceIntegrationTestHelper; | ||
import com.emmsale.member.domain.MemberRepository; | ||
import java.util.List; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Test; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
class MemberActivityQueryServiceTest extends ServiceIntegrationTestHelper { | ||
|
||
@Autowired | ||
private MemberRepository memberRepository; | ||
|
||
@Autowired | ||
private MemberActivityQueryService memberActivityQueryService; | ||
|
||
@Test | ||
@DisplayName("findActivities(): 유저의 Activity들을 조회한다.") | ||
void findActivities() { | ||
final Long memberId = 1L; | ||
|
||
final List<ActivityResponse> actual | ||
= memberActivityQueryService.findActivities(memberId); | ||
|
||
final List<ActivityResponse> expected = List.of( | ||
new ActivityResponse(1L, "동아리", "YAPP"), | ||
new ActivityResponse(2L, "동아리", "DND"), | ||
new ActivityResponse(3L, "동아리", "nexters") | ||
); | ||
|
||
assertThat(actual) | ||
.usingRecursiveComparison() | ||
.ignoringCollectionOrder() | ||
.isEqualTo(expected); | ||
} | ||
} |