{"action":"created","comment":{"url":"https://api.github.com/repos/agory/book-store/pulls/comments/215307103","pull_request_review_id":152541331,"id":215307103,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTMwNzEwMw==","diff_hunk":"@@ -0,0 +1,56 @@\n+package com.example.bookstore.facades;\n+\n+import com.example.bookstore.dto.BookDetailVO;\n+import com.example.bookstore.dto.BookShortVO;\n+import com.example.bookstore.entities.Book;\n+import com.example.bookstore.repositories.BookRepository;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.mockito.InjectMocks;\n+import org.mockito.Mock;\n+import org.mockito.Mockito;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.test.context.junit4.SpringRunner;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import static org.junit.Assert.*;\n+\n+@RunWith(SpringRunner.class)\n+public class BookFacadeTest {\n+\n+    @Mock\n+    private BookRepository bookRepository;\n+\n+    @InjectMocks\n+    @Autowired\n+    BookFacade bookFacade;\n+\n+    @Test\n+    public void retrieveBookList_shouldReturnAListOfBookShort() {\n+        // given\n+        List<Book> data = new ArrayList<>();\n+        data.add(new Book(\"A123456789012\",\"title\",\"authors\",\"publisher\", \"Images\", \"Book description\"));\n+        data.add(new Book(\"B123456789012\",\"title\",\"authors\",\"publisher\", \"Images\", \"Book description\"));\n+        data.add(new Book(\"C123456789012\",\"title\",\"authors\",\"publisher\", \"Images\", \"Book description\"));\n+        // when","path":"src/test/java/com/example/bookstore/facades/BookFacadeTest.java","position":36,"original_position":36,"commit_id":"c692d5cd0620a59eb0931f73226625ccc5416305","original_commit_id":"c692d5cd0620a59eb0931f73226625ccc5416305","user":{"login":"agory","id":8822421,"node_id":"MDQ6VXNlcjg4MjI0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/8822421?v=4","gravatar_id":"","url":"https://api.github.com/users/agory","html_url":"https://github.com/agory","followers_url":"https://api.github.com/users/agory/followers","following_url":"https://api.github.com/users/agory/following{/other_user}","gists_url":"https://api.github.com/users/agory/gists{/gist_id}","starred_url":"https://api.github.com/users/agory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agory/subscriptions","organizations_url":"https://api.github.com/users/agory/orgs","repos_url":"https://api.github.com/users/agory/repos","events_url":"https://api.github.com/users/agory/events{/privacy}","received_events_url":"https://api.github.com/users/agory/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-09-05T15:01:03Z","updated_at":"2018-09-05T15:01:03Z","html_url":"https://github.com/agory/book-store/pull/7#discussion_r215307103","pull_request_url":"https://api.github.com/repos/agory/book-store/pulls/7","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/agory/book-store/pulls/comments/215307103"},"html":{"href":"https://github.com/agory/book-store/pull/7#discussion_r215307103"},"pull_request":{"href":"https://api.github.com/repos/agory/book-store/pulls/7"}},"in_reply_to_id":215300430},"pull_request":{"url":"https://api.github.com/repos/agory/book-store/pulls/7","id":213009679,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMDA5Njc5","html_url":"https://github.com/agory/book-store/pull/7","diff_url":"https://github.com/agory/book-store/pull/7.diff","patch_url":"https://github.com/agory/book-store/pull/7.patch","issue_url":"https://api.github.com/repos/agory/book-store/issues/7","number":7,"state":"open","locked":false,"title":"feature(backend): add some book dto and facade","user":{"login":"agory","id":8822421,"node_id":"MDQ6VXNlcjg4MjI0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/8822421?v=4","gravatar_id":"","url":"https://api.github.com/users/agory","html_url":"https://github.com/agory","followers_url":"https://api.github.com/users/agory/followers","following_url":"https://api.github.com/users/agory/following{/other_user}","gists_url":"https://api.github.com/users/agory/gists{/gist_id}","starred_url":"https://api.github.com/users/agory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agory/subscriptions","organizations_url":"https://api.github.com/users/agory/orgs","repos_url":"https://api.github.com/users/agory/repos","events_url":"https://api.github.com/users/agory/events{/privacy}","received_events_url":"https://api.github.com/users/agory/received_events","type":"User","site_admin":false},"body":"Need #6 pr","created_at":"2018-09-04T15:05:16Z","updated_at":"2018-09-05T15:01:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9df2cb046c2402a81439dc0d68bc3ce84705df5a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/agory/book-store/pulls/7/commits","review_comments_url":"https://api.github.com/repos/agory/book-store/pulls/7/comments","review_comment_url":"https://api.github.com/repos/agory/book-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agory/book-store/issues/7/comments","statuses_url":"https://api.github.com/repos/agory/book-store/statuses/c692d5cd0620a59eb0931f73226625ccc5416305","head":{"label":"agory:ft-dto","ref":"ft-dto","sha":"c692d5cd0620a59eb0931f73226625ccc5416305","user":{"login":"agory","id":8822421,"node_id":"MDQ6VXNlcjg4MjI0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/8822421?v=4","gravatar_id":"","url":"https://api.github.com/users/agory","html_url":"https://github.com/agory","followers_url":"https://api.github.com/users/agory/followers","following_url":"https://api.github.com/users/agory/following{/other_user}","gists_url":"https://api.github.com/users/agory/gists{/gist_id}","starred_url":"https://api.github.com/users/agory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agory/subscriptions","organizations_url":"https://api.github.com/users/agory/orgs","repos_url":"https://api.github.com/users/agory/repos","events_url":"https://api.github.com/users/agory/events{/privacy}","received_events_url":"https://api.github.com/users/agory/received_events","type":"User","site_admin":false},"repo":{"id":147200475,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyMDA0NzU=","name":"book-store","full_name":"agory/book-store","owner":{"login":"agory","id":8822421,"node_id":"MDQ6VXNlcjg4MjI0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/8822421?v=4","gravatar_id":"","url":"https://api.github.com/users/agory","html_url":"https://github.com/agory","followers_url":"https://api.github.com/users/agory/followers","following_url":"https://api.github.com/users/agory/following{/other_user}","gists_url":"https://api.github.com/users/agory/gists{/gist_id}","starred_url":"https://api.github.com/users/agory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agory/subscriptions","organizations_url":"https://api.github.com/users/agory/orgs","repos_url":"https://api.github.com/users/agory/repos","events_url":"https://api.github.com/users/agory/events{/privacy}","received_events_url":"https://api.github.com/users/agory/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agory/book-store","description":null,"fork":false,"url":"https://api.github.com/repos/agory/book-store","forks_url":"https://api.github.com/repos/agory/book-store/forks","keys_url":"https://api.github.com/repos/agory/book-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agory/book-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agory/book-store/teams","hooks_url":"https://api.github.com/repos/agory/book-store/hooks","issue_events_url":"https://api.github.com/repos/agory/book-store/issues/events{/number}","events_url":"https://api.github.com/repos/agory/book-store/events","assignees_url":"https://api.github.com/repos/agory/book-store/assignees{/user}","branches_url":"https://api.github.com/repos/agory/book-store/branches{/branch}","tags_url":"https://api.github.com/repos/agory/book-store/tags","blobs_url":"https://api.github.com/repos/agory/book-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agory/book-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agory/book-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/agory/book-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agory/book-store/statuses/{sha}","languages_url":"https://api.github.com/repos/agory/book-store/languages","stargazers_url":"https://api.github.com/repos/agory/book-store/stargazers","contributors_url":"https://api.github.com/repos/agory/book-store/contributors","subscribers_url":"https://api.github.com/repos/agory/book-store/subscribers","subscription_url":"https://api.github.com/repos/agory/book-store/subscription","commits_url":"https://api.github.com/repos/agory/book-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/agory/book-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/agory/book-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/agory/book-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/agory/book-store/contents/{+path}","compare_url":"https://api.github.com/repos/agory/book-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agory/book-store/merges","archive_url":"https://api.github.com/repos/agory/book-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agory/book-store/downloads","issues_url":"https://api.github.com/repos/agory/book-store/issues{/number}","pulls_url":"https://api.github.com/repos/agory/book-store/pulls{/number}","milestones_url":"https://api.github.com/repos/agory/book-store/milestones{/number}","notifications_url":"https://api.github.com/repos/agory/book-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agory/book-store/labels{/name}","releases_url":"https://api.github.com/repos/agory/book-store/releases{/id}","deployments_url":"https://api.github.com/repos/agory/book-store/deployments","created_at":"2018-09-03T12:15:16Z","updated_at":"2018-09-05T14:56:33Z","pushed_at":"2018-09-05T14:56:31Z","git_url":"git://github.com/agory/book-store.git","ssh_url":"git@github.com:agory/book-store.git","clone_url":"https://github.com/agory/book-store.git","svn_url":"https://github.com/agory/book-store","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"agory:master","ref":"master","sha":"c08e294da650a656a0012bad0a0c5f6618b494ca","user":{"login":"agory","id":8822421,"node_id":"MDQ6VXNlcjg4MjI0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/8822421?v=4","gravatar_id":"","url":"https://api.github.com/users/agory","html_url":"https://github.com/agory","followers_url":"https://api.github.com/users/agory/followers","following_url":"https://api.github.com/users/agory/following{/other_user}","gists_url":"https://api.github.com/users/agory/gists{/gist_id}","starred_url":"https://api.github.com/users/agory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agory/subscriptions","organizations_url":"https://api.github.com/users/agory/orgs","repos_url":"https://api.github.com/users/agory/repos","events_url":"https://api.github.com/users/agory/events{/privacy}","received_events_url":"https://api.github.com/users/agory/received_events","type":"User","site_admin":false},"repo":{"id":147200475,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyMDA0NzU=","name":"book-store","full_name":"agory/book-store","owner":{"login":"agory","id":8822421,"node_id":"MDQ6VXNlcjg4MjI0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/8822421?v=4","gravatar_id":"","url":"https://api.github.com/users/agory","html_url":"https://github.com/agory","followers_url":"https://api.github.com/users/agory/followers","following_url":"https://api.github.com/users/agory/following{/other_user}","gists_url":"https://api.github.com/users/agory/gists{/gist_id}","starred_url":"https://api.github.com/users/agory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agory/subscriptions","organizations_url":"https://api.github.com/users/agory/orgs","repos_url":"https://api.github.com/users/agory/repos","events_url":"https://api.github.com/users/agory/events{/privacy}","received_events_url":"https://api.github.com/users/agory/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agory/book-store","description":null,"fork":false,"url":"https://api.github.com/repos/agory/book-store","forks_url":"https://api.github.com/repos/agory/book-store/forks","keys_url":"https://api.github.com/repos/agory/book-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agory/book-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agory/book-store/teams","hooks_url":"https://api.github.com/repos/agory/book-store/hooks","issue_events_url":"https://api.github.com/repos/agory/book-store/issues/events{/number}","events_url":"https://api.github.com/repos/agory/book-store/events","assignees_url":"https://api.github.com/repos/agory/book-store/assignees{/user}","branches_url":"https://api.github.com/repos/agory/book-store/branches{/branch}","tags_url":"https://api.github.com/repos/agory/book-store/tags","blobs_url":"https://api.github.com/repos/agory/book-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agory/book-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agory/book-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/agory/book-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agory/book-store/statuses/{sha}","languages_url":"https://api.github.com/repos/agory/book-store/languages","stargazers_url":"https://api.github.com/repos/agory/book-store/stargazers","contributors_url":"https://api.github.com/repos/agory/book-store/contributors","subscribers_url":"https://api.github.com/repos/agory/book-store/subscribers","subscription_url":"https://api.github.com/repos/agory/book-store/subscription","commits_url":"https://api.github.com/repos/agory/book-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/agory/book-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/agory/book-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/agory/book-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/agory/book-store/contents/{+path}","compare_url":"https://api.github.com/repos/agory/book-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agory/book-store/merges","archive_url":"https://api.github.com/repos/agory/book-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agory/book-store/downloads","issues_url":"https://api.github.com/repos/agory/book-store/issues{/number}","pulls_url":"https://api.github.com/repos/agory/book-store/pulls{/number}","milestones_url":"https://api.github.com/repos/agory/book-store/milestones{/number}","notifications_url":"https://api.github.com/repos/agory/book-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agory/book-store/labels{/name}","releases_url":"https://api.github.com/repos/agory/book-store/releases{/id}","deployments_url":"https://api.github.com/repos/agory/book-store/deployments","created_at":"2018-09-03T12:15:16Z","updated_at":"2018-09-05T14:56:33Z","pushed_at":"2018-09-05T14:56:31Z","git_url":"git://github.com/agory/book-store.git","ssh_url":"git@github.com:agory/book-store.git","clone_url":"https://github.com/agory/book-store.git","svn_url":"https://github.com/agory/book-store","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/agory/book-store/pulls/7"},"html":{"href":"https://github.com/agory/book-store/pull/7"},"issue":{"href":"https://api.github.com/repos/agory/book-store/issues/7"},"comments":{"href":"https://api.github.com/repos/agory/book-store/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/agory/book-store/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/agory/book-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agory/book-store/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/agory/book-store/statuses/c692d5cd0620a59eb0931f73226625ccc5416305"}},"author_association":"OWNER"}}
{"actor":{"display_login":"agory"}}