Skip to content

Commit

Permalink
chore: 테스트 패키지 이동 및 패키지명 제대로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hectick committed Nov 23, 2023
1 parent 569e149 commit 4d83aac
Show file tree
Hide file tree
Showing 178 changed files with 546 additions and 581 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import edonymyeon.backend.consumption.domain.Consumption;
import edonymyeon.backend.consumption.domain.ConsumptionsPerMonth;
import edonymyeon.backend.consumption.repository.ConsumptionRepository;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import edonymyeon.backend.consumption.domain.Consumption;
import edonymyeon.backend.consumption.repository.ConsumptionRepository;
import edonymyeon.backend.global.exception.EdonymyeonException;
import edonymyeon.backend.membber.member.application.MemberConsumptionService;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.membber.member.application.dto.YearMonthDto;
import edonymyeon.backend.member.profile.application.MemberConsumptionService;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.YearMonthDto;
import edonymyeon.backend.content.post.domain.Post;
import edonymyeon.backend.content.post.repository.PostRepository;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package edonymyeon.backend.consumption.ui;

import edonymyeon.backend.membber.auth.annotation.AuthPrincipal;
import edonymyeon.backend.member.auth.annotation.AuthPrincipal;
import edonymyeon.backend.consumption.application.ConsumptionService;
import edonymyeon.backend.consumption.application.dto.RecentConsumptionsResponse;
import edonymyeon.backend.global.version.ApiVersion;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import edonymyeon.backend.image.domain.ImageType;
import edonymyeon.backend.content.comment.commentimage.domain.CommentImageInfo;
import edonymyeon.backend.content.comment.commentimage.repository.CommentImageInfoRepository;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.membber.member.repository.MemberRepository;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.member.profile.domain.Member;
import edonymyeon.backend.member.profile.repository.MemberRepository;
import edonymyeon.backend.content.post.domain.Post;
import edonymyeon.backend.content.post.repository.PostRepository;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import edonymyeon.backend.global.domain.TemporalRecord;
import edonymyeon.backend.global.exception.EdonymyeonException;
import edonymyeon.backend.content.comment.commentimage.domain.CommentImageInfo;
import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.member.profile.domain.Member;
import edonymyeon.backend.content.post.domain.Post;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package edonymyeon.backend.content.comment.ui;

import edonymyeon.backend.membber.auth.annotation.AuthPrincipal;
import edonymyeon.backend.member.auth.annotation.AuthPrincipal;
import edonymyeon.backend.content.comment.application.CommentService;
import edonymyeon.backend.content.comment.application.dto.request.CommentRequest;
import edonymyeon.backend.content.comment.application.dto.response.CommentsResponse;
import edonymyeon.backend.global.version.ApiVersion;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import java.net.URI;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import edonymyeon.backend.content.post.repository.PostRepository;
import edonymyeon.backend.image.application.ImageService;
import edonymyeon.backend.image.domain.ImageType;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.content.post.domain.Post;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
import edonymyeon.backend.global.exception.ExceptionInformation;
import edonymyeon.backend.image.application.ImageService;
import edonymyeon.backend.image.domain.ImageType;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.membber.member.repository.MemberRepository;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.member.profile.domain.Member;
import edonymyeon.backend.member.profile.repository.MemberRepository;
import edonymyeon.backend.content.post.domain.HotPostPolicy;
import edonymyeon.backend.content.post.domain.Post;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import edonymyeon.backend.image.domain.ImageType;
import edonymyeon.backend.content.post.postimage.domain.PostImageInfos;
import edonymyeon.backend.content.post.postimage.repository.PostImageInfoRepository;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.membber.member.repository.MemberRepository;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.member.profile.domain.Member;
import edonymyeon.backend.member.profile.repository.MemberRepository;
import edonymyeon.backend.content.post.domain.Post;
import lombok.RequiredArgsConstructor;
import org.springframework.context.ApplicationEventPublisher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import edonymyeon.backend.content.post.application.dto.response.AllThumbsInPostResponse;
import edonymyeon.backend.content.post.application.dto.response.ThumbsStatusInPostResponse;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;

public interface PostThumbsService {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package edonymyeon.backend.content.post.application.dto.response;

import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.member.profile.domain.Member;
import edonymyeon.backend.content.post.domain.Post;
import java.time.LocalDateTime;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import edonymyeon.backend.global.exception.EdonymyeonException;
import edonymyeon.backend.content.post.postimage.domain.PostImageInfo;
import edonymyeon.backend.content.post.postimage.domain.PostImageInfos;
import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.member.profile.domain.Member;
import jakarta.persistence.*;
import lombok.*;
import org.hibernate.annotations.ColumnDefault;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import edonymyeon.backend.content.post.application.MyPostService;
import edonymyeon.backend.content.post.application.PostSlice;
import edonymyeon.backend.content.post.application.dto.response.MyPostResponse;
import edonymyeon.backend.membber.auth.annotation.AuthPrincipal;
import edonymyeon.backend.member.auth.annotation.AuthPrincipal;
import edonymyeon.backend.global.version.ApiVersion;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.content.post.ui.annotation.PostPaging;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package edonymyeon.backend.content.post.ui;

import edonymyeon.backend.membber.auth.annotation.AuthPrincipal;
import edonymyeon.backend.member.auth.annotation.AuthPrincipal;
import edonymyeon.backend.global.version.ApiVersion;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.content.post.application.PostService;
import edonymyeon.backend.content.post.application.dto.request.PostModificationRequest;
import edonymyeon.backend.content.post.application.dto.request.PostRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import edonymyeon.backend.content.post.application.PostSlice;
import edonymyeon.backend.content.post.application.dto.response.GeneralPostInfoResponse;
import edonymyeon.backend.content.post.application.dto.response.SpecificPostInfoResponse;
import edonymyeon.backend.membber.auth.annotation.AuthPrincipal;
import edonymyeon.backend.member.auth.annotation.AuthPrincipal;
import edonymyeon.backend.global.version.ApiVersion;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.content.post.ui.annotation.HotPostSizing;
import edonymyeon.backend.content.post.ui.annotation.PostPaging;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import edonymyeon.backend.content.thumbs.domain.AllThumbsInPost;
import edonymyeon.backend.content.thumbs.domain.Thumbs;
import edonymyeon.backend.content.thumbs.repository.ThumbsRepository;
import edonymyeon.backend.membber.member.application.dto.AnonymousMemberId;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.AnonymousMemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.content.post.application.PostThumbsService;
import edonymyeon.backend.content.post.application.dto.response.AllThumbsInPostResponse;
import edonymyeon.backend.content.post.application.dto.response.ThumbsStatusInPostResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import edonymyeon.backend.content.thumbs.repository.ThumbsRepository;
import edonymyeon.backend.global.exception.EdonymyeonException;
import edonymyeon.backend.global.exception.ExceptionInformation;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.membber.member.repository.MemberRepository;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.member.profile.domain.Member;
import edonymyeon.backend.member.profile.repository.MemberRepository;
import edonymyeon.backend.content.post.domain.Post;
import edonymyeon.backend.content.post.repository.PostRepository;
import edonymyeon.backend.content.thumbs.application.event.ThumbsDownEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import edonymyeon.backend.global.domain.TemporalRecord;
import edonymyeon.backend.global.exception.EdonymyeonException;
import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.member.profile.domain.Member;
import edonymyeon.backend.content.post.domain.Post;
import jakarta.persistence.*;
import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package edonymyeon.backend.content.thumbs.ui;

import edonymyeon.backend.membber.auth.annotation.AuthPrincipal;
import edonymyeon.backend.member.auth.annotation.AuthPrincipal;
import edonymyeon.backend.global.version.ApiVersion;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.content.thumbs.application.ThumbsService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.annotation;
package edonymyeon.backend.member.auth.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.application;
package edonymyeon.backend.member.auth.application;

import static edonymyeon.backend.global.exception.ExceptionInformation.MEMBER_EMAIL_DUPLICATE;
import static edonymyeon.backend.global.exception.ExceptionInformation.MEMBER_EMAIL_NOT_FOUND;
Expand All @@ -7,24 +7,24 @@
import static edonymyeon.backend.global.exception.ExceptionInformation.MEMBER_NICKNAME_INVALID;
import static edonymyeon.backend.global.exception.ExceptionInformation.MEMBER_PASSWORD_NOT_MATCH;

import edonymyeon.backend.membber.member.application.dto.response.DuplicateCheckResponse;
import edonymyeon.backend.membber.auth.application.dto.JoinRequest;
import edonymyeon.backend.membber.auth.application.dto.KakaoLoginResponse;
import edonymyeon.backend.membber.auth.application.dto.LoginRequest;
import edonymyeon.backend.membber.auth.application.event.JoinMemberEvent;
import edonymyeon.backend.membber.auth.application.event.LoginEvent;
import edonymyeon.backend.membber.auth.application.event.LogoutEvent;
import edonymyeon.backend.membber.auth.domain.PasswordEncoder;
import edonymyeon.backend.member.profile.application.dto.response.DuplicateCheckResponse;
import edonymyeon.backend.member.auth.application.dto.JoinRequest;
import edonymyeon.backend.member.auth.application.dto.KakaoLoginResponse;
import edonymyeon.backend.member.auth.application.dto.LoginRequest;
import edonymyeon.backend.member.auth.application.event.JoinMemberEvent;
import edonymyeon.backend.member.auth.application.event.LoginEvent;
import edonymyeon.backend.member.auth.application.event.LogoutEvent;
import edonymyeon.backend.member.auth.domain.PasswordEncoder;
import edonymyeon.backend.global.exception.EdonymyeonException;
import edonymyeon.backend.membber.member.application.MemberService;
import edonymyeon.backend.membber.member.application.dto.ActiveMemberId;
import edonymyeon.backend.membber.member.application.dto.MemberId;
import edonymyeon.backend.membber.member.domain.Email;
import edonymyeon.backend.membber.member.domain.Member;
import edonymyeon.backend.membber.member.domain.Nickname;
import edonymyeon.backend.membber.member.domain.SocialInfo;
import edonymyeon.backend.membber.member.domain.SocialInfo.SocialType;
import edonymyeon.backend.membber.member.repository.MemberRepository;
import edonymyeon.backend.member.profile.application.MemberService;
import edonymyeon.backend.member.profile.application.dto.ActiveMemberId;
import edonymyeon.backend.member.profile.application.dto.MemberId;
import edonymyeon.backend.member.profile.domain.Email;
import edonymyeon.backend.member.profile.domain.Member;
import edonymyeon.backend.member.profile.domain.Nickname;
import edonymyeon.backend.member.profile.domain.SocialInfo;
import edonymyeon.backend.member.profile.domain.SocialInfo.SocialType;
import edonymyeon.backend.member.profile.repository.MemberRepository;
import java.util.List;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package edonymyeon.backend.membber.auth.application;
package edonymyeon.backend.member.auth.application;

import edonymyeon.backend.membber.auth.application.dto.KakaoLoginRequest;
import edonymyeon.backend.membber.auth.application.dto.KakaoLoginResponse;
import edonymyeon.backend.member.auth.application.dto.KakaoLoginRequest;
import edonymyeon.backend.member.auth.application.dto.KakaoLoginResponse;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.application.dto;
package edonymyeon.backend.member.auth.application.dto;

public record JoinRequest(String email, String password, String nickname, String deviceToken) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.application.dto;
package edonymyeon.backend.member.auth.application.dto;

public record KakaoLoginRequest(String accessToken, String deviceToken) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.application.dto;
package edonymyeon.backend.member.auth.application.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.application.dto;
package edonymyeon.backend.member.auth.application.dto;

public record LoginRequest(String email, String password, String deviceToken) {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package edonymyeon.backend.member.auth.application.dto;

public record LogoutRequest(String deviceToken) {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.application.dto;
package edonymyeon.backend.member.auth.application.dto;

public record MemberResponse(String email, String password) {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package edonymyeon.backend.member.auth.application.event;

import edonymyeon.backend.member.profile.domain.Member;

public record JoinMemberEvent(Member member, String deviceToken) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package edonymyeon.backend.member.auth.application.event;

import edonymyeon.backend.member.profile.domain.Member;

public record LoginEvent(Member member, String deviceToken) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package edonymyeon.backend.member.auth.application.event;

public record LogoutEvent(String deviceToken) {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.domain;
package edonymyeon.backend.member.auth.domain;

import java.util.Base64;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.domain;
package edonymyeon.backend.member.auth.domain;

public interface PasswordEncoder {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.domain;
package edonymyeon.backend.member.auth.domain;

import static edonymyeon.backend.global.exception.ExceptionInformation.NOT_SUPPORTED_ALGORITHM;
import static edonymyeon.backend.global.exception.ExceptionInformation.NOT_SUPPORTED_VERSION;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.domain;
package edonymyeon.backend.member.auth.domain;

public interface TokenGenerator {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edonymyeon.backend.membber.auth.domain;
package edonymyeon.backend.member.auth.domain;

import edonymyeon.backend.global.exception.EdonymyeonException;
import edonymyeon.backend.global.exception.ExceptionInformation;
Expand Down
Loading

0 comments on commit 4d83aac

Please sign in to comment.