-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1020 from woowacourse/release/1.5.0
Release/1.5.0
- Loading branch information
Showing
235 changed files
with
8,104 additions
and
2,051 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
backend/src/acceptanceTest/java/wooteco/prolog/fixtures/CommentAcceptanceFixture.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,24 @@ | ||
package wooteco.prolog.fixtures; | ||
|
||
import wooteco.prolog.studylog.application.dto.CommentChangeRequest; | ||
import wooteco.prolog.studylog.application.dto.CommentCreateRequest; | ||
|
||
public enum CommentAcceptanceFixture { | ||
|
||
COMMENT("스터디로그의 댓글 내용입니다."), | ||
UPDATED_COMMENT("수정된 스터디로그의 댓글 내용입니다."); | ||
|
||
private final String content; | ||
|
||
CommentAcceptanceFixture(String content) { | ||
this.content = content; | ||
} | ||
|
||
public CommentCreateRequest getCreateRequest() { | ||
return new CommentCreateRequest(COMMENT.content); | ||
} | ||
|
||
public CommentChangeRequest getUpdateRequest() { | ||
return new CommentChangeRequest(UPDATED_COMMENT.content); | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
backend/src/acceptanceTest/java/wooteco/prolog/fixtures/LevellogFixture.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,43 @@ | ||
package wooteco.prolog.fixtures; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
import wooteco.prolog.levellogs.application.dto.LevelLogRequest; | ||
import wooteco.prolog.levellogs.application.dto.SelfDiscussionRequest; | ||
|
||
public class LevellogFixture { | ||
|
||
public static final List<SelfDiscussionRequest> SELF_DISCUSSION_REQUESTS = Arrays.asList( | ||
new SelfDiscussionRequest("Q1", "A1"), | ||
new SelfDiscussionRequest("Q2", "A2")); | ||
|
||
public static final LevelLogRequest LEVEL_LOG_REQUEST = new LevelLogRequest("title1", | ||
"content1", | ||
SELF_DISCUSSION_REQUESTS); | ||
|
||
public static final List<SelfDiscussionRequest> SELF_DISCUSSION_UPDATE_REQUESTS = Arrays.asList( | ||
new SelfDiscussionRequest("Updated Q1", "Updated A1"), | ||
new SelfDiscussionRequest("Updated Q2", "Updated A2")); | ||
|
||
public static final LevelLogRequest LEVEL_LOG_UPDATE_REQUEST = new LevelLogRequest( | ||
"updated title", "updated content", SELF_DISCUSSION_UPDATE_REQUESTS | ||
); | ||
|
||
public static List<LevelLogRequest> levelLogRequests() { | ||
List<LevelLogRequest> requests = new ArrayList<>(); | ||
for (int i = 0; i < 5; i++) { | ||
requests.add( | ||
new LevelLogRequest("title" + i, "content" + i, selfDiscussionRequests(3))); | ||
} | ||
return requests; | ||
} | ||
|
||
private static List<SelfDiscussionRequest> selfDiscussionRequests(int count) { | ||
List<SelfDiscussionRequest> requests = new ArrayList<>(); | ||
for (int i = 0; i < count; i++) { | ||
requests.add(new SelfDiscussionRequest("Q" + i, "A" + i)); | ||
} | ||
return requests; | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
backend/src/acceptanceTest/java/wooteco/prolog/fixtures/MemberFixture.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.