use of wooteco.prolog.member.application.dto.MemberResponse in project prolog by woowacourse.
the class MemberStepDefinitions method 멤버정보가조회된다.
@Then("멤버 정보가 조회된다")
public void 멤버정보가조회된다() {
MemberResponse member = context.response.as(MemberResponse.class);
assertThat(member.getImageUrl()).isNotNull();
}
use of wooteco.prolog.member.application.dto.MemberResponse in project prolog by woowacourse.
the class FilterController method showAll.
@GetMapping
public ResponseEntity<FilterResponse> showAll() {
List<LevelResponse> levelResponses = levelService.findAll();
List<MissionResponse> missionResponses = missionService.findAll();
List<TagResponse> tagResponses = tagService.findTagsIncludedInStudylogs();
List<MemberResponse> memberResponses = memberService.findAll();
return ResponseEntity.ok().body(new FilterResponse(levelResponses, missionResponses, tagResponses, memberResponses));
}
use of wooteco.prolog.member.application.dto.MemberResponse in project prolog by woowacourse.
the class StudylogScrapServiceTest method registerScrapTest.
@DisplayName("스크랩 등록기능 확인")
@Test
void registerScrapTest() {
// given
MemberScrapResponse memberScrapResponse = studylogScrapService.registerScrap(member.getId(), studylog.getId());
// when
MemberResponse memberResponse = memberScrapResponse.getMemberResponse();
StudylogResponse studylogResponse = memberScrapResponse.getStudylogResponse();
// then
assertThat(member.getId()).isEqualTo(memberResponse.getId());
assertThat(studylog.getId()).isEqualTo(studylogResponse.getId());
}
use of wooteco.prolog.member.application.dto.MemberResponse in project prolog by woowacourse.
the class MemberServiceTest method findMemberResponseByUsernameTest.
@DisplayName("Username을 통해서 MemberResponse를 조회한다.")
@Test
void findMemberResponseByUsernameTest() {
// given
Member savedMember = Member를_생성한다(new Member("gracefulBrown", "브라운", Role.CREW, 1L, "imageUrl"));
MemberResponse expectMemberResponse = MemberResponse.of(savedMember);
// when
MemberResponse foundMemberResponse = memberService.findMemberResponseByUsername(savedMember.getUsername());
// then
assertThat(foundMemberResponse).usingRecursiveComparison().isEqualTo(expectMemberResponse);
}
Aggregations