Skip to content

Commit

Permalink
test: 테스트 데이터 변경에 따른 테스트 수정 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
623nana committed Aug 7, 2021
1 parent 500ab67 commit e3df571
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/resources/data-h2.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
insert into user (email, identifier, name) values ('email', 'identifier', 'name');
insert into user (email, identifier, name) values ('[email protected]', '1', '김아무개');

insert into letter (contents, encrypted_id, letter_to, email, sticker, question_id, state, title, user_id)
values ('CONTENTS', 'ENCRYPTED', 'LETTER_TO', 'email', 'HAPPY', 1 , 'PENDING', 'TITLE', 1);
insert into letter (contents, encrypted_id, letter_to, email, sticker, question_id, state, title, user_id)
values ('CONTENTS1', 'ENCRYPTED1', 'LETTER_TO1', 'email', 'BLUE', 2, 'PENDING', 'TITLE1', 1);

insert into letter (contents, encrypted_id, letter_to, email, sticker, question_id, state, title, user_id)
values ('CONTENTS2', 'ENCRYPTED2', 'LETTER_TO2', '[email protected]', 'BLUE', 2, 'PENDING', 'TITLE2', 2);
insert into letter (contents, encrypted_id, letter_to, email, sticker, question_id, state, title, user_id)
values ('CONTENTS3', 'ENCRYPTED3', 'LETTER_TO3', '[email protected]', 'BLUE', 2, 'PENDING', 'TITLE3', 2);

insert into send_option (text, covid_stat) values ('테스트', 1000);
insert into send_option (text, covid_stat) values ('테스트2', 2000);
insert into send_option (text, covid_stat) values ('기본질문', 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public class SendOptionRepositoryTest {
void fetchJoinTest() {
List<SendOption> options = sendOptionRepository.findAllJoinFetch();

assertThat(options.size()).isEqualTo(5);
assertThat(options.size()).isEqualTo(8);
}
}

0 comments on commit e3df571

Please sign in to comment.