Skip to content

Commit

Permalink
test: text record, private-post, post 데이터 수 확장 (10 -> 100)
Browse files Browse the repository at this point in the history
  • Loading branch information
mangowhoiscloud committed Nov 7, 2024
1 parent 5cb442b commit b5f3386
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void initializeData(MemberRepository memberRepo, PrivatePostRepository pr

List<TextRecord> textRecords = new ArrayList<>();

for(int i=1; i<=10; i++){
for(int i=1; i<=100; i++){
TextRecord textRecord = TextRecord.builder()
.script("This is a text record " + i)
.build();
Expand All @@ -76,7 +76,7 @@ public void initializeData(MemberRepository memberRepo, PrivatePostRepository pr

// PrivatePosts 생성
List<PrivatePost> privatePosts = new ArrayList<>();
for (int i = 1; i <= 10; i++) {
for (int i = 1; i <= 100; i++) {
Member member = members.get(i % 3);
PrivatePost privatePost =
PrivatePost.builder()
Expand All @@ -98,7 +98,7 @@ public void initializeData(MemberRepository memberRepo, PrivatePostRepository pr

// Posts 생성
List<Post> posts = new ArrayList<>();
for (int i = 1; i <= 10; i++) {
for (int i = 1; i <= 100; i++) {
Member member = members.get(i % 3);
PrivatePost privatePost = privatePosts.get(i - 1);
Post post = new Post(privatePost.getId(), member, "Public Post Title " + i, "Summary AI " + i,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.reactive.function.client.WebClient;

import aimo.backend.common.dto.DataResponse;
import aimo.backend.common.exception.ApiException;
import aimo.backend.common.exception.ErrorCode;
import aimo.backend.common.mapper.AudioRecordMapper;
Expand Down

0 comments on commit b5f3386

Please sign in to comment.