-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
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
7 changes: 5 additions & 2 deletions
7
src/test/resources/sql/book_controller/create-book-with-linked-person.sql
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
truncate book, person; | ||
|
||
insert into person (id, name, birthday_year) values (1, 'Test User Name', 2020); | ||
insert into book (id, person_id, title, author, publish_year) values (1, 1, 'Test Book', 'Test Author', 1234); | ||
insert into person (id, name, birthday_year, username, password, role) | ||
values (1, 'Test User Name', 2020, 'username', 'password', 'ROLE_READER'); | ||
|
||
insert into book (id, person_id, title, author, publish_year) | ||
values (1, 1, 'Test Book', 'Test Author', 1234); |
3 changes: 2 additions & 1 deletion
3
src/test/resources/sql/people_controller/create-not-overdue-book.sql
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
truncate book, person; | ||
|
||
insert into person (id, name, birthday_year) values (1, 'Test User Name', 2020); | ||
insert into person (id, name, birthday_year, username, password, role) | ||
values (1, 'Test User Name', 2020, 'username', 'password', 'ROLE_READER'); | ||
|
||
insert into book (id, person_id, title, author, publish_year, given_at) | ||
values (1, 1, 'Test Book', 'Test Author', 1234, now() - interval '9 days'); |
3 changes: 2 additions & 1 deletion
3
src/test/resources/sql/people_controller/create-overdue-book.sql
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
truncate book, person; | ||
|
||
insert into person (id, name, birthday_year) values (1, 'Test User Name', 2020); | ||
insert into person (id, name, birthday_year, username, password, role) | ||
values (1, 'Test User Name', 2020, 'username', 'password', 'ROLE_READER'); | ||
|
||
insert into book (id, person_id, title, author, publish_year, given_at) | ||
values (1, 1, 'Test Book', 'Test Author', 1234, now() - interval '10 days'); |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
truncate person cascade; | ||
|
||
insert into person (id, name, birthday_year) values (1, 'Test User', 1990); | ||
insert into person (id, name, birthday_year, username, password, role) | ||
values (1, 'Test User', 1990, 'username', 'password', 'ROLE_READER'); |