payload: {"action":"created","comment":{"url":"https://api.github.com/repos/711skhu/core/pulls/comments/273346332","pull_request_review_id":224218687,"id":273346332,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3MzM0NjMzMg==","diff_hunk":"@@ -0,0 +1,190 @@\n+package com.shouwn.oj.repository.problem;\n+\n+import java.time.LocalDateTime;\n+import java.time.format.DateTimeFormatter;\n+\n+import com.shouwn.oj.model.entity.member.Admin;\n+import com.shouwn.oj.model.entity.problem.Course;\n+import com.shouwn.oj.model.entity.problem.Problem;\n+import com.shouwn.oj.model.entity.problem.ProblemDetail;\n+import com.shouwn.oj.repository.member.AdminRepository;\n+import org.junit.jupiter.api.Assertions;\n+import org.junit.jupiter.api.Test;\n+import org.junit.jupiter.api.extension.ExtendWith;\n+\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.boot.test.context.SpringBootTest;\n+import org.springframework.test.context.junit.jupiter.SpringExtension;\n+import org.springframework.transaction.annotation.Transactional;\n+\n+import static com.shouwn.oj.model.enums.ProblemType.HOMEWORK;\n+\n+@ExtendWith(SpringExtension.class)\n+@Transactional\n+@SpringBootTest\n+public class ProblemDetailRepositoryTest {\n+\n+\t@Autowired\n+\tprivate AdminRepository adminRepository;\n+\n+\t@Autowired\n+\tprivate CourseRepository courseRepository;\n+\n+\t@Autowired\n+\tprivate ProblemRepository problemRepository;\n+\n+\t@Autowired\n+\tprivate ProblemDetailRepository problemDetailRepository;\n+\n+\t@Test\n+\tpublic void saveAndFind() {\n+\t\tAdmin professor = Admin.builder()\n+\t\t\t\t.username(\"junit_tester\")\n+\t\t\t\t.password(\"test123\")\n+\t\t\t\t.name(\"tester\")\n+\t\t\t\t.email(\"test@gmail.com\")\n+\t\t\t\t.build();\n+\n+\t\tadminRepository.save(professor);\n+\n+\t\tCourse newCourse = Course.builder()\n+\t\t\t\t.name(\"junit_test\")\n+\t\t\t\t.description(\"test\")\n+\t\t\t\t.enabled(true)\n+\t\t\t\t.professor(professor)\n+\t\t\t\t.build();\n+\n+\t\tcourseRepository.save(newCourse);\n+\n+\t\tProblem problem = Problem.builder()\n+\t\t\t\t.type(HOMEWORK)\n+\t\t\t\t.title(\"junit_test\")\n+\t\t\t\t.startDate(LocalDateTime.parse(\"2019-04-07 12:00:00\", DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\")))\n+\t\t\t\t.endDate(LocalDateTime.parse(\"2019-04-10 12:00:00\", DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\")))\n+\t\t\t\t.course(newCourse)\n+\t\t\t\t.build();","path":"src/test/java/com/shouwn/oj/repository/problem/ProblemDetailRepositoryTest.java","position":65,"original_position":65,"commit_id":"f5e2007d31cd98b209da20063748025916ebc6e9","original_commit_id":"f5e2007d31cd98b209da20063748025916ebc6e9","user":{"login":"yjll1019","id":32984517,"node_id":"MDQ6VXNlcjMyOTg0NTE3","avatar_url":"https://avatars3.githubusercontent.com/u/32984517?v=4","gravatar_id":"","url":"https://api.github.com/users/yjll1019","html_url":"https://github.com/yjll1019","followers_url":"https://api.github.com/users/yjll1019/followers","following_url":"https://api.github.com/users/yjll1019/following{/other_user}","gists_url":"https://api.github.com/users/yjll1019/gists{/gist_id}","starred_url":"https://api.github.com/users/yjll1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yjll1019/subscriptions","organizations_url":"https://api.github.com/users/yjll1019/orgs","repos_url":"https://api.github.com/users/yjll1019/repos","events_url":"https://api.github.com/users/yjll1019/events{/privacy}","received_events_url":"https://api.github.com/users/yjll1019/received_events","type":"User","site_admin":false},"body":"네~ 감사합니다. 생성자 수정해서 커밋하겠습니다!","created_at":"2019-04-09T06:49:37Z","updated_at":"2019-04-09T06:49:37Z","html_url":"https://github.com/711skhu/core/pull/7#discussion_r273346332","pull_request_url":"https://api.github.com/repos/711skhu/core/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/711skhu/core/pulls/comments/273346332"},"html":{"href":"https://github.com/711skhu/core/pull/7#discussion_r273346332"},"pull_request":{"href":"https://api.github.com/repos/711skhu/core/pulls/7"}},"in_reply_to_id":272823472},"pull_request":{"url":"https://api.github.com/repos/711skhu/core/pulls/7","id":268083568,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY4MDgzNTY4","html_url":"https://github.com/711skhu/core/pull/7","diff_url":"https://github.com/711skhu/core/pull/7.diff","patch_url":"https://github.com/711skhu/core/pull/7.patch","issue_url":"https://api.github.com/repos/711skhu/core/issues/7","number":7,"state":"open","locked":false,"title":"Feature v1.0.1 entity repository","user":{"login":"yjll1019","id":32984517,"node_id":"MDQ6VXNlcjMyOTg0NTE3","avatar_url":"https://avatars3.githubusercontent.com/u/32984517?v=4","gravatar_id":"","url":"https://api.github.com/users/yjll1019","html_url":"https://github.com/yjll1019","followers_url":"https://api.github.com/users/yjll1019/followers","following_url":"https://api.github.com/users/yjll1019/following{/other_user}","gists_url":"https://api.github.com/users/yjll1019/gists{/gist_id}","starred_url":"https://api.github.com/users/yjll1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yjll1019/subscriptions","organizations_url":"https://api.github.com/users/yjll1019/orgs","repos_url":"https://api.github.com/users/yjll1019/repos","events_url":"https://api.github.com/users/yjll1019/events{/privacy}","received_events_url":"https://api.github.com/users/yjll1019/received_events","type":"User","site_admin":false},"body":"+ TestCase 생성자 코드 추가.\r\n+ entity 테스트 코드 작성.\r\n했습니다.","created_at":"2019-04-07T05:55:32Z","updated_at":"2019-04-09T06:49:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dba6a8827faf3318c8e29259c89f67dbed1388bb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/711skhu/core/pulls/7/commits","review_comments_url":"https://api.github.com/repos/711skhu/core/pulls/7/comments","review_comment_url":"https://api.github.com/repos/711skhu/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/711skhu/core/issues/7/comments","statuses_url":"https://api.github.com/repos/711skhu/core/statuses/f5e2007d31cd98b209da20063748025916ebc6e9","head":{"label":"711skhu:feature-v1.0.1-entity-repository","ref":"feature-v1.0.1-entity-repository","sha":"f5e2007d31cd98b209da20063748025916ebc6e9","user":{"login":"711skhu","id":48477042,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NDc3MDQy","avatar_url":"https://avatars2.githubusercontent.com/u/48477042?v=4","gravatar_id":"","url":"https://api.github.com/users/711skhu","html_url":"https://github.com/711skhu","followers_url":"https://api.github.com/users/711skhu/followers","following_url":"https://api.github.com/users/711skhu/following{/other_user}","gists_url":"https://api.github.com/users/711skhu/gists{/gist_id}","starred_url":"https://api.github.com/users/711skhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/711skhu/subscriptions","organizations_url":"https://api.github.com/users/711skhu/orgs","repos_url":"https://api.github.com/users/711skhu/repos","events_url":"https://api.github.com/users/711skhu/events{/privacy}","received_events_url":"https://api.github.com/users/711skhu/received_events","type":"Organization","site_admin":false},"repo":{"id":175191010,"node_id":"MDEwOlJlcG9zaXRvcnkxNzUxOTEwMTA=","name":"core","full_name":"711skhu/core","private":false,"owner":{"login":"711skhu","id":48477042,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NDc3MDQy","avatar_url":"https://avatars2.githubusercontent.com/u/48477042?v=4","gravatar_id":"","url":"https://api.github.com/users/711skhu","html_url":"https://github.com/711skhu","followers_url":"https://api.github.com/users/711skhu/followers","following_url":"https://api.github.com/users/711skhu/following{/other_user}","gists_url":"https://api.github.com/users/711skhu/gists{/gist_id}","starred_url":"https://api.github.com/users/711skhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/711skhu/subscriptions","organizations_url":"https://api.github.com/users/711skhu/orgs","repos_url":"https://api.github.com/users/711skhu/repos","events_url":"https://api.github.com/users/711skhu/events{/privacy}","received_events_url":"https://api.github.com/users/711skhu/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/711skhu/core","description":"server core","fork":false,"url":"https://api.github.com/repos/711skhu/core","forks_url":"https://api.github.com/repos/711skhu/core/forks","keys_url":"https://api.github.com/repos/711skhu/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/711skhu/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/711skhu/core/teams","hooks_url":"https://api.github.com/repos/711skhu/core/hooks","issue_events_url":"https://api.github.com/repos/711skhu/core/issues/events{/number}","events_url":"https://api.github.com/repos/711skhu/core/events","assignees_url":"https://api.github.com/repos/711skhu/core/assignees{/user}","branches_url":"https://api.github.com/repos/711skhu/core/branches{/branch}","tags_url":"https://api.github.com/repos/711skhu/core/tags","blobs_url":"https://api.github.com/repos/711skhu/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/711skhu/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/711skhu/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/711skhu/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/711skhu/core/statuses/{sha}","languages_url":"https://api.github.com/repos/711skhu/core/languages","stargazers_url":"https://api.github.com/repos/711skhu/core/stargazers","contributors_url":"https://api.github.com/repos/711skhu/core/contributors","subscribers_url":"https://api.github.com/repos/711skhu/core/subscribers","subscription_url":"https://api.github.com/repos/711skhu/core/subscription","commits_url":"https://api.github.com/repos/711skhu/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/711skhu/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/711skhu/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/711skhu/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/711skhu/core/contents/{+path}","compare_url":"https://api.github.com/repos/711skhu/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/711skhu/core/merges","archive_url":"https://api.github.com/repos/711skhu/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/711skhu/core/downloads","issues_url":"https://api.github.com/repos/711skhu/core/issues{/number}","pulls_url":"https://api.github.com/repos/711skhu/core/pulls{/number}","milestones_url":"https://api.github.com/repos/711skhu/core/milestones{/number}","notifications_url":"https://api.github.com/repos/711skhu/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/711skhu/core/labels{/name}","releases_url":"https://api.github.com/repos/711skhu/core/releases{/id}","deployments_url":"https://api.github.com/repos/711skhu/core/deployments","created_at":"2019-03-12T10:50:19Z","updated_at":"2019-04-05T06:04:23Z","pushed_at":"2019-04-07T05:55:33Z","git_url":"git://github.com/711skhu/core.git","ssh_url":"git@github.com:711skhu/core.git","clone_url":"https://github.com/711skhu/core.git","svn_url":"https://github.com/711skhu/core","homepage":null,"size":24,"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,"disabled":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"711skhu:master","ref":"master","sha":"20bba9045ee230218782883c4cb25bf358c1b597","user":{"login":"711skhu","id":48477042,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NDc3MDQy","avatar_url":"https://avatars2.githubusercontent.com/u/48477042?v=4","gravatar_id":"","url":"https://api.github.com/users/711skhu","html_url":"https://github.com/711skhu","followers_url":"https://api.github.com/users/711skhu/followers","following_url":"https://api.github.com/users/711skhu/following{/other_user}","gists_url":"https://api.github.com/users/711skhu/gists{/gist_id}","starred_url":"https://api.github.com/users/711skhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/711skhu/subscriptions","organizations_url":"https://api.github.com/users/711skhu/orgs","repos_url":"https://api.github.com/users/711skhu/repos","events_url":"https://api.github.com/users/711skhu/events{/privacy}","received_events_url":"https://api.github.com/users/711skhu/received_events","type":"Organization","site_admin":false},"repo":{"id":175191010,"node_id":"MDEwOlJlcG9zaXRvcnkxNzUxOTEwMTA=","name":"core","full_name":"711skhu/core","private":false,"owner":{"login":"711skhu","id":48477042,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NDc3MDQy","avatar_url":"https://avatars2.githubusercontent.com/u/48477042?v=4","gravatar_id":"","url":"https://api.github.com/users/711skhu","html_url":"https://github.com/711skhu","followers_url":"https://api.github.com/users/711skhu/followers","following_url":"https://api.github.com/users/711skhu/following{/other_user}","gists_url":"https://api.github.com/users/711skhu/gists{/gist_id}","starred_url":"https://api.github.com/users/711skhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/711skhu/subscriptions","organizations_url":"https://api.github.com/users/711skhu/orgs","repos_url":"https://api.github.com/users/711skhu/repos","events_url":"https://api.github.com/users/711skhu/events{/privacy}","received_events_url":"https://api.github.com/users/711skhu/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/711skhu/core","description":"server core","fork":false,"url":"https://api.github.com/repos/711skhu/core","forks_url":"https://api.github.com/repos/711skhu/core/forks","keys_url":"https://api.github.com/repos/711skhu/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/711skhu/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/711skhu/core/teams","hooks_url":"https://api.github.com/repos/711skhu/core/hooks","issue_events_url":"https://api.github.com/repos/711skhu/core/issues/events{/number}","events_url":"https://api.github.com/repos/711skhu/core/events","assignees_url":"https://api.github.com/repos/711skhu/core/assignees{/user}","branches_url":"https://api.github.com/repos/711skhu/core/branches{/branch}","tags_url":"https://api.github.com/repos/711skhu/core/tags","blobs_url":"https://api.github.com/repos/711skhu/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/711skhu/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/711skhu/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/711skhu/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/711skhu/core/statuses/{sha}","languages_url":"https://api.github.com/repos/711skhu/core/languages","stargazers_url":"https://api.github.com/repos/711skhu/core/stargazers","contributors_url":"https://api.github.com/repos/711skhu/core/contributors","subscribers_url":"https://api.github.com/repos/711skhu/core/subscribers","subscription_url":"https://api.github.com/repos/711skhu/core/subscription","commits_url":"https://api.github.com/repos/711skhu/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/711skhu/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/711skhu/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/711skhu/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/711skhu/core/contents/{+path}","compare_url":"https://api.github.com/repos/711skhu/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/711skhu/core/merges","archive_url":"https://api.github.com/repos/711skhu/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/711skhu/core/downloads","issues_url":"https://api.github.com/repos/711skhu/core/issues{/number}","pulls_url":"https://api.github.com/repos/711skhu/core/pulls{/number}","milestones_url":"https://api.github.com/repos/711skhu/core/milestones{/number}","notifications_url":"https://api.github.com/repos/711skhu/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/711skhu/core/labels{/name}","releases_url":"https://api.github.com/repos/711skhu/core/releases{/id}","deployments_url":"https://api.github.com/repos/711skhu/core/deployments","created_at":"2019-03-12T10:50:19Z","updated_at":"2019-04-05T06:04:23Z","pushed_at":"2019-04-07T05:55:33Z","git_url":"git://github.com/711skhu/core.git","ssh_url":"git@github.com:711skhu/core.git","clone_url":"https://github.com/711skhu/core.git","svn_url":"https://github.com/711skhu/core","homepage":null,"size":24,"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,"disabled":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/711skhu/core/pulls/7"},"html":{"href":"https://github.com/711skhu/core/pull/7"},"issue":{"href":"https://api.github.com/repos/711skhu/core/issues/7"},"comments":{"href":"https://api.github.com/repos/711skhu/core/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/711skhu/core/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/711skhu/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/711skhu/core/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/711skhu/core/statuses/f5e2007d31cd98b209da20063748025916ebc6e9"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"yjll1019"}}