{"action":"created","comment":{"url":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/comments/88277369","pull_request_review_id":8850853,"id":88277369,"diff_hunk":"@@ -0,0 +1,310 @@\n+package auto_ckz.domain.repair;\n+\n+import auto_ckz.config.JpaConfigForTest;\n+import auto_ckz.domain.enums.RepairStatus;\n+import com.github.springtestdbunit.DbUnitTestExecutionListener;\n+import com.github.springtestdbunit.annotation.DatabaseSetup;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.test.context.ContextConfiguration;\n+import org.springframework.test.context.TestExecutionListeners;\n+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;\n+import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;\n+import org.springframework.test.context.support.DirtiesContextTestExecutionListener;\n+import org.springframework.test.context.transaction.TransactionalTestExecutionListener;\n+\n+import java.text.ParseException;\n+import java.util.List;\n+\n+import static org.hamcrest.Matchers.*;\n+import static org.hamcrest.Matchers.notNullValue;\n+import static org.junit.Assert.assertThat;\n+\n+@RunWith(SpringJUnit4ClassRunner.class)\n+@ContextConfiguration(classes = {JpaConfigForTest.class})\n+@TestExecutionListeners({ DependencyInjectionTestExecutionListener.class,\n+        DirtiesContextTestExecutionListener.class,\n+        TransactionalTestExecutionListener.class,\n+        DbUnitTestExecutionListener.class })\n+@DatabaseSetup(\"/testData/toDoData.xml\")\n+public class RepairTest {\n+\n+    @Autowired\n+    private RepairRepository repository;\n+\n+    @Test\n+    public void NoEntries_findByRepairOrderId_ShouldReturnEmptyList() {\n+        List<Repair> repairEntries = repository.findByRepairOrderId(null);\n+        assertThat(repairEntries.size(), is(0));\n+    }\n+\n+    @Test\n+    public void findByMechanicId_ShouldReturnOneRepairEntry() throws ParseException {\n+        List<Repair> repairEntries = repository.findByMechanicId(1L);\n+        System.out.println(repairEntries.get(0));\n+        assertThat(repairEntries.get(0), allOf(\n+                hasProperty(\"id\", is(1L)),\n+                hasProperty(\"description\", is(\"Wymiana klockow hamulcowych\")),\n+                hasProperty(\"status\", is(RepairStatus.IN_PROGRESS)),\n+                hasProperty(\"repairOrder\", allOf(\n+                        hasProperty(\"id\", is(1L)),\n+                        hasProperty(\"date\", notNullValue()),\n+                        hasProperty(\"totalCost\", is(notNullValue())),","path":"src/test/java/auto_ckz/domain/repair/RepairTest.java","position":55,"original_position":53,"commit_id":"9b33ea62febd1908168345a7d11b4a4a43044fd4","original_commit_id":"82856bd402f1670c9aedaed3b9beab08119393ed","user":{"login":"dkozlowski22","id":15090321,"avatar_url":"https://avatars.githubusercontent.com/u/15090321?v=3","gravatar_id":"","url":"https://api.github.com/users/dkozlowski22","html_url":"https://github.com/dkozlowski22","followers_url":"https://api.github.com/users/dkozlowski22/followers","following_url":"https://api.github.com/users/dkozlowski22/following{/other_user}","gists_url":"https://api.github.com/users/dkozlowski22/gists{/gist_id}","starred_url":"https://api.github.com/users/dkozlowski22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkozlowski22/subscriptions","organizations_url":"https://api.github.com/users/dkozlowski22/orgs","repos_url":"https://api.github.com/users/dkozlowski22/repos","events_url":"https://api.github.com/users/dkozlowski22/events{/privacy}","received_events_url":"https://api.github.com/users/dkozlowski22/received_events","type":"User","site_admin":false},"body":"Date zmienie, natomiast totalCost jest typu numeric(19,2) w postGresie, mamy taki odpowiednik w Javie ??","created_at":"2016-11-16T16:47:32Z","updated_at":"2016-11-16T16:49:33Z","html_url":"https://github.com/auto-ckz/auto-ckz/pull/8#discussion_r88277369","pull_request_url":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/comments/88277369"},"html":{"href":"https://github.com/auto-ckz/auto-ckz/pull/8#discussion_r88277369"},"pull_request":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/8","id":93984451,"html_url":"https://github.com/auto-ckz/auto-ckz/pull/8","diff_url":"https://github.com/auto-ckz/auto-ckz/pull/8.diff","patch_url":"https://github.com/auto-ckz/auto-ckz/pull/8.patch","issue_url":"https://api.github.com/repos/auto-ckz/auto-ckz/issues/8","number":8,"state":"open","locked":false,"title":"Tests rebased","user":{"login":"dkozlowski22","id":15090321,"avatar_url":"https://avatars.githubusercontent.com/u/15090321?v=3","gravatar_id":"","url":"https://api.github.com/users/dkozlowski22","html_url":"https://github.com/dkozlowski22","followers_url":"https://api.github.com/users/dkozlowski22/followers","following_url":"https://api.github.com/users/dkozlowski22/following{/other_user}","gists_url":"https://api.github.com/users/dkozlowski22/gists{/gist_id}","starred_url":"https://api.github.com/users/dkozlowski22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkozlowski22/subscriptions","organizations_url":"https://api.github.com/users/dkozlowski22/orgs","repos_url":"https://api.github.com/users/dkozlowski22/repos","events_url":"https://api.github.com/users/dkozlowski22/events{/privacy}","received_events_url":"https://api.github.com/users/dkozlowski22/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-16T15:17:11Z","updated_at":"2016-11-16T16:49:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8cf981715f25ea49fd3b6e4fdf7e529d5bc54cac","assignee":{"login":"m-ciesielski","id":5637575,"avatar_url":"https://avatars.githubusercontent.com/u/5637575?v=3","gravatar_id":"","url":"https://api.github.com/users/m-ciesielski","html_url":"https://github.com/m-ciesielski","followers_url":"https://api.github.com/users/m-ciesielski/followers","following_url":"https://api.github.com/users/m-ciesielski/following{/other_user}","gists_url":"https://api.github.com/users/m-ciesielski/gists{/gist_id}","starred_url":"https://api.github.com/users/m-ciesielski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-ciesielski/subscriptions","organizations_url":"https://api.github.com/users/m-ciesielski/orgs","repos_url":"https://api.github.com/users/m-ciesielski/repos","events_url":"https://api.github.com/users/m-ciesielski/events{/privacy}","received_events_url":"https://api.github.com/users/m-ciesielski/received_events","type":"User","site_admin":false},"assignees":[{"login":"m-ciesielski","id":5637575,"avatar_url":"https://avatars.githubusercontent.com/u/5637575?v=3","gravatar_id":"","url":"https://api.github.com/users/m-ciesielski","html_url":"https://github.com/m-ciesielski","followers_url":"https://api.github.com/users/m-ciesielski/followers","following_url":"https://api.github.com/users/m-ciesielski/following{/other_user}","gists_url":"https://api.github.com/users/m-ciesielski/gists{/gist_id}","starred_url":"https://api.github.com/users/m-ciesielski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-ciesielski/subscriptions","organizations_url":"https://api.github.com/users/m-ciesielski/orgs","repos_url":"https://api.github.com/users/m-ciesielski/repos","events_url":"https://api.github.com/users/m-ciesielski/events{/privacy}","received_events_url":"https://api.github.com/users/m-ciesielski/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/8/commits","review_comments_url":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/8/comments","review_comment_url":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/auto-ckz/auto-ckz/issues/8/comments","statuses_url":"https://api.github.com/repos/auto-ckz/auto-ckz/statuses/9b33ea62febd1908168345a7d11b4a4a43044fd4","head":{"label":"auto-ckz:tests-rebased","ref":"tests-rebased","sha":"9b33ea62febd1908168345a7d11b4a4a43044fd4","user":{"login":"auto-ckz","id":23214164,"avatar_url":"https://avatars.githubusercontent.com/u/23214164?v=3","gravatar_id":"","url":"https://api.github.com/users/auto-ckz","html_url":"https://github.com/auto-ckz","followers_url":"https://api.github.com/users/auto-ckz/followers","following_url":"https://api.github.com/users/auto-ckz/following{/other_user}","gists_url":"https://api.github.com/users/auto-ckz/gists{/gist_id}","starred_url":"https://api.github.com/users/auto-ckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auto-ckz/subscriptions","organizations_url":"https://api.github.com/users/auto-ckz/orgs","repos_url":"https://api.github.com/users/auto-ckz/repos","events_url":"https://api.github.com/users/auto-ckz/events{/privacy}","received_events_url":"https://api.github.com/users/auto-ckz/received_events","type":"Organization","site_admin":false},"repo":{"id":72639023,"name":"auto-ckz","full_name":"auto-ckz/auto-ckz","owner":{"login":"auto-ckz","id":23214164,"avatar_url":"https://avatars.githubusercontent.com/u/23214164?v=3","gravatar_id":"","url":"https://api.github.com/users/auto-ckz","html_url":"https://github.com/auto-ckz","followers_url":"https://api.github.com/users/auto-ckz/followers","following_url":"https://api.github.com/users/auto-ckz/following{/other_user}","gists_url":"https://api.github.com/users/auto-ckz/gists{/gist_id}","starred_url":"https://api.github.com/users/auto-ckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auto-ckz/subscriptions","organizations_url":"https://api.github.com/users/auto-ckz/orgs","repos_url":"https://api.github.com/users/auto-ckz/repos","events_url":"https://api.github.com/users/auto-ckz/events{/privacy}","received_events_url":"https://api.github.com/users/auto-ckz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auto-ckz/auto-ckz","description":null,"fork":false,"url":"https://api.github.com/repos/auto-ckz/auto-ckz","forks_url":"https://api.github.com/repos/auto-ckz/auto-ckz/forks","keys_url":"https://api.github.com/repos/auto-ckz/auto-ckz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auto-ckz/auto-ckz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auto-ckz/auto-ckz/teams","hooks_url":"https://api.github.com/repos/auto-ckz/auto-ckz/hooks","issue_events_url":"https://api.github.com/repos/auto-ckz/auto-ckz/issues/events{/number}","events_url":"https://api.github.com/repos/auto-ckz/auto-ckz/events","assignees_url":"https://api.github.com/repos/auto-ckz/auto-ckz/assignees{/user}","branches_url":"https://api.github.com/repos/auto-ckz/auto-ckz/branches{/branch}","tags_url":"https://api.github.com/repos/auto-ckz/auto-ckz/tags","blobs_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/refs{/sha}","trees_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auto-ckz/auto-ckz/statuses/{sha}","languages_url":"https://api.github.com/repos/auto-ckz/auto-ckz/languages","stargazers_url":"https://api.github.com/repos/auto-ckz/auto-ckz/stargazers","contributors_url":"https://api.github.com/repos/auto-ckz/auto-ckz/contributors","subscribers_url":"https://api.github.com/repos/auto-ckz/auto-ckz/subscribers","subscription_url":"https://api.github.com/repos/auto-ckz/auto-ckz/subscription","commits_url":"https://api.github.com/repos/auto-ckz/auto-ckz/commits{/sha}","git_commits_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/commits{/sha}","comments_url":"https://api.github.com/repos/auto-ckz/auto-ckz/comments{/number}","issue_comment_url":"https://api.github.com/repos/auto-ckz/auto-ckz/issues/comments{/number}","contents_url":"https://api.github.com/repos/auto-ckz/auto-ckz/contents/{+path}","compare_url":"https://api.github.com/repos/auto-ckz/auto-ckz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auto-ckz/auto-ckz/merges","archive_url":"https://api.github.com/repos/auto-ckz/auto-ckz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auto-ckz/auto-ckz/downloads","issues_url":"https://api.github.com/repos/auto-ckz/auto-ckz/issues{/number}","pulls_url":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls{/number}","milestones_url":"https://api.github.com/repos/auto-ckz/auto-ckz/milestones{/number}","notifications_url":"https://api.github.com/repos/auto-ckz/auto-ckz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auto-ckz/auto-ckz/labels{/name}","releases_url":"https://api.github.com/repos/auto-ckz/auto-ckz/releases{/id}","deployments_url":"https://api.github.com/repos/auto-ckz/auto-ckz/deployments","created_at":"2016-11-02T12:44:36Z","updated_at":"2016-11-06T12:05:34Z","pushed_at":"2016-11-16T15:57:28Z","git_url":"git://github.com/auto-ckz/auto-ckz.git","ssh_url":"git@github.com:auto-ckz/auto-ckz.git","clone_url":"https://github.com/auto-ckz/auto-ckz.git","svn_url":"https://github.com/auto-ckz/auto-ckz","homepage":null,"size":219,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"auto-ckz:master","ref":"master","sha":"6c10e0cacf15f0444e8e62760f77b9c5f4806409","user":{"login":"auto-ckz","id":23214164,"avatar_url":"https://avatars.githubusercontent.com/u/23214164?v=3","gravatar_id":"","url":"https://api.github.com/users/auto-ckz","html_url":"https://github.com/auto-ckz","followers_url":"https://api.github.com/users/auto-ckz/followers","following_url":"https://api.github.com/users/auto-ckz/following{/other_user}","gists_url":"https://api.github.com/users/auto-ckz/gists{/gist_id}","starred_url":"https://api.github.com/users/auto-ckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auto-ckz/subscriptions","organizations_url":"https://api.github.com/users/auto-ckz/orgs","repos_url":"https://api.github.com/users/auto-ckz/repos","events_url":"https://api.github.com/users/auto-ckz/events{/privacy}","received_events_url":"https://api.github.com/users/auto-ckz/received_events","type":"Organization","site_admin":false},"repo":{"id":72639023,"name":"auto-ckz","full_name":"auto-ckz/auto-ckz","owner":{"login":"auto-ckz","id":23214164,"avatar_url":"https://avatars.githubusercontent.com/u/23214164?v=3","gravatar_id":"","url":"https://api.github.com/users/auto-ckz","html_url":"https://github.com/auto-ckz","followers_url":"https://api.github.com/users/auto-ckz/followers","following_url":"https://api.github.com/users/auto-ckz/following{/other_user}","gists_url":"https://api.github.com/users/auto-ckz/gists{/gist_id}","starred_url":"https://api.github.com/users/auto-ckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auto-ckz/subscriptions","organizations_url":"https://api.github.com/users/auto-ckz/orgs","repos_url":"https://api.github.com/users/auto-ckz/repos","events_url":"https://api.github.com/users/auto-ckz/events{/privacy}","received_events_url":"https://api.github.com/users/auto-ckz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auto-ckz/auto-ckz","description":null,"fork":false,"url":"https://api.github.com/repos/auto-ckz/auto-ckz","forks_url":"https://api.github.com/repos/auto-ckz/auto-ckz/forks","keys_url":"https://api.github.com/repos/auto-ckz/auto-ckz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auto-ckz/auto-ckz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auto-ckz/auto-ckz/teams","hooks_url":"https://api.github.com/repos/auto-ckz/auto-ckz/hooks","issue_events_url":"https://api.github.com/repos/auto-ckz/auto-ckz/issues/events{/number}","events_url":"https://api.github.com/repos/auto-ckz/auto-ckz/events","assignees_url":"https://api.github.com/repos/auto-ckz/auto-ckz/assignees{/user}","branches_url":"https://api.github.com/repos/auto-ckz/auto-ckz/branches{/branch}","tags_url":"https://api.github.com/repos/auto-ckz/auto-ckz/tags","blobs_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/refs{/sha}","trees_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auto-ckz/auto-ckz/statuses/{sha}","languages_url":"https://api.github.com/repos/auto-ckz/auto-ckz/languages","stargazers_url":"https://api.github.com/repos/auto-ckz/auto-ckz/stargazers","contributors_url":"https://api.github.com/repos/auto-ckz/auto-ckz/contributors","subscribers_url":"https://api.github.com/repos/auto-ckz/auto-ckz/subscribers","subscription_url":"https://api.github.com/repos/auto-ckz/auto-ckz/subscription","commits_url":"https://api.github.com/repos/auto-ckz/auto-ckz/commits{/sha}","git_commits_url":"https://api.github.com/repos/auto-ckz/auto-ckz/git/commits{/sha}","comments_url":"https://api.github.com/repos/auto-ckz/auto-ckz/comments{/number}","issue_comment_url":"https://api.github.com/repos/auto-ckz/auto-ckz/issues/comments{/number}","contents_url":"https://api.github.com/repos/auto-ckz/auto-ckz/contents/{+path}","compare_url":"https://api.github.com/repos/auto-ckz/auto-ckz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auto-ckz/auto-ckz/merges","archive_url":"https://api.github.com/repos/auto-ckz/auto-ckz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auto-ckz/auto-ckz/downloads","issues_url":"https://api.github.com/repos/auto-ckz/auto-ckz/issues{/number}","pulls_url":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls{/number}","milestones_url":"https://api.github.com/repos/auto-ckz/auto-ckz/milestones{/number}","notifications_url":"https://api.github.com/repos/auto-ckz/auto-ckz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auto-ckz/auto-ckz/labels{/name}","releases_url":"https://api.github.com/repos/auto-ckz/auto-ckz/releases{/id}","deployments_url":"https://api.github.com/repos/auto-ckz/auto-ckz/deployments","created_at":"2016-11-02T12:44:36Z","updated_at":"2016-11-06T12:05:34Z","pushed_at":"2016-11-16T15:57:28Z","git_url":"git://github.com/auto-ckz/auto-ckz.git","ssh_url":"git@github.com:auto-ckz/auto-ckz.git","clone_url":"https://github.com/auto-ckz/auto-ckz.git","svn_url":"https://github.com/auto-ckz/auto-ckz","homepage":null,"size":219,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/8"},"html":{"href":"https://github.com/auto-ckz/auto-ckz/pull/8"},"issue":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/issues/8"},"comments":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/auto-ckz/auto-ckz/statuses/9b33ea62febd1908168345a7d11b4a4a43044fd4"}}}}
{"actor":{"display_login":"dkozlowski22"}}