{"action":"created","comment":{"url":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/comments/182058146","pull_request_review_id":112791783,"id":182058146,"diff_hunk":"@@ -41,11 +44,25 @@ public void initialize() {\n         Vehicle vehicle3 = new Vehicle(\"3\", \"54-FTP-00\", specification3);\n \n         try {\n-            ownerService.addOwner(owner);\n+            ownerService.create(owner);\n+\n+            vehicleService.create(vehicle1);\n+            vehicleService.create(vehicle2);\n+            vehicleService.create(vehicle3);\n+\n+            for (int i = 1; i <= 100; i++) {\n+                VehicleSpecification specification = new VehicleSpecification(\n+                        \"Toyota\" + i,\n+                        \"Aygo\" + i,\n+                        new Color(random.nextFloat(), random.nextFloat(), random.nextFloat()),\n+                        GASOLINE,\n+                        220L\n+                );\n+                Vehicle vehicle = new Vehicle(\"tracker-\" + Integer.toString(i), \"54-FTP-\" + i, specification);\n+                vehicle.setStolen(random.nextBoolean());\n \n-            vehicleService.addVehicle(vehicle1);\n-            vehicleService.addVehicle(vehicle2);\n-            vehicleService.addVehicle(vehicle3);\n+                vehicleService.create(vehicle);\n+            }\n         } catch (Exception e) {\n             e.printStackTrace();","path":"service/src/main/java/nl/earthbird/government/service/DataInit.java","position":54,"original_position":54,"commit_id":"e158ab498eb3e8bef75acc793106e61593b2f183","original_commit_id":"e158ab498eb3e8bef75acc793106e61593b2f183","user":{"login":"TehMessiah","id":24429353,"avatar_url":"https://avatars0.githubusercontent.com/u/24429353?v=4","gravatar_id":"","url":"https://api.github.com/users/TehMessiah","html_url":"https://github.com/TehMessiah","followers_url":"https://api.github.com/users/TehMessiah/followers","following_url":"https://api.github.com/users/TehMessiah/following{/other_user}","gists_url":"https://api.github.com/users/TehMessiah/gists{/gist_id}","starred_url":"https://api.github.com/users/TehMessiah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TehMessiah/subscriptions","organizations_url":"https://api.github.com/users/TehMessiah/orgs","repos_url":"https://api.github.com/users/TehMessiah/repos","events_url":"https://api.github.com/users/TehMessiah/events{/privacy}","received_events_url":"https://api.github.com/users/TehMessiah/received_events","type":"User","site_admin":false},"body":"![MINOR](https://sonarsource.github.io/sonar-github/severity-minor.png 'Severity: MINOR') Use a logger to log this exception. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](http://cc.pupper.nl/coding_rules#rule_key=squid%3AS1148)\n","created_at":"2018-04-17T12:45:17Z","updated_at":"2018-04-17T12:45:17Z","html_url":"https://github.com/ESD6-S65-3/Government-System/pull/8#discussion_r182058146","pull_request_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/comments/182058146"},"html":{"href":"https://github.com/ESD6-S65-3/Government-System/pull/8#discussion_r182058146"},"pull_request":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/8","id":182151182,"html_url":"https://github.com/ESD6-S65-3/Government-System/pull/8","diff_url":"https://github.com/ESD6-S65-3/Government-System/pull/8.diff","patch_url":"https://github.com/ESD6-S65-3/Government-System/pull/8.patch","issue_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues/8","number":8,"state":"open","locked":false,"title":"Added various features based on vehicles","user":{"login":"BeeHiveJava","id":5957362,"avatar_url":"https://avatars1.githubusercontent.com/u/5957362?v=4","gravatar_id":"","url":"https://api.github.com/users/BeeHiveJava","html_url":"https://github.com/BeeHiveJava","followers_url":"https://api.github.com/users/BeeHiveJava/followers","following_url":"https://api.github.com/users/BeeHiveJava/following{/other_user}","gists_url":"https://api.github.com/users/BeeHiveJava/gists{/gist_id}","starred_url":"https://api.github.com/users/BeeHiveJava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeeHiveJava/subscriptions","organizations_url":"https://api.github.com/users/BeeHiveJava/orgs","repos_url":"https://api.github.com/users/BeeHiveJava/repos","events_url":"https://api.github.com/users/BeeHiveJava/events{/privacy}","received_events_url":"https://api.github.com/users/BeeHiveJava/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-17T12:36:54Z","updated_at":"2018-04-17T12:45:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ce7195e59659daf474a740c2a204adb1867ad2d","assignee":{"login":"BeeHiveJava","id":5957362,"avatar_url":"https://avatars1.githubusercontent.com/u/5957362?v=4","gravatar_id":"","url":"https://api.github.com/users/BeeHiveJava","html_url":"https://github.com/BeeHiveJava","followers_url":"https://api.github.com/users/BeeHiveJava/followers","following_url":"https://api.github.com/users/BeeHiveJava/following{/other_user}","gists_url":"https://api.github.com/users/BeeHiveJava/gists{/gist_id}","starred_url":"https://api.github.com/users/BeeHiveJava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeeHiveJava/subscriptions","organizations_url":"https://api.github.com/users/BeeHiveJava/orgs","repos_url":"https://api.github.com/users/BeeHiveJava/repos","events_url":"https://api.github.com/users/BeeHiveJava/events{/privacy}","received_events_url":"https://api.github.com/users/BeeHiveJava/received_events","type":"User","site_admin":false},"assignees":[{"login":"BeeHiveJava","id":5957362,"avatar_url":"https://avatars1.githubusercontent.com/u/5957362?v=4","gravatar_id":"","url":"https://api.github.com/users/BeeHiveJava","html_url":"https://github.com/BeeHiveJava","followers_url":"https://api.github.com/users/BeeHiveJava/followers","following_url":"https://api.github.com/users/BeeHiveJava/following{/other_user}","gists_url":"https://api.github.com/users/BeeHiveJava/gists{/gist_id}","starred_url":"https://api.github.com/users/BeeHiveJava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeeHiveJava/subscriptions","organizations_url":"https://api.github.com/users/BeeHiveJava/orgs","repos_url":"https://api.github.com/users/BeeHiveJava/repos","events_url":"https://api.github.com/users/BeeHiveJava/events{/privacy}","received_events_url":"https://api.github.com/users/BeeHiveJava/received_events","type":"User","site_admin":false},{"login":"Laugslander","id":16139317,"avatar_url":"https://avatars0.githubusercontent.com/u/16139317?v=4","gravatar_id":"","url":"https://api.github.com/users/Laugslander","html_url":"https://github.com/Laugslander","followers_url":"https://api.github.com/users/Laugslander/followers","following_url":"https://api.github.com/users/Laugslander/following{/other_user}","gists_url":"https://api.github.com/users/Laugslander/gists{/gist_id}","starred_url":"https://api.github.com/users/Laugslander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laugslander/subscriptions","organizations_url":"https://api.github.com/users/Laugslander/orgs","repos_url":"https://api.github.com/users/Laugslander/repos","events_url":"https://api.github.com/users/Laugslander/events{/privacy}","received_events_url":"https://api.github.com/users/Laugslander/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/8/commits","review_comments_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/8/comments","review_comment_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues/8/comments","statuses_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/statuses/e158ab498eb3e8bef75acc793106e61593b2f183","head":{"label":"ESD6-S65-3:feature-46-vehicle_resource","ref":"feature-46-vehicle_resource","sha":"e158ab498eb3e8bef75acc793106e61593b2f183","user":{"login":"ESD6-S65-3","id":36185948,"avatar_url":"https://avatars1.githubusercontent.com/u/36185948?v=4","gravatar_id":"","url":"https://api.github.com/users/ESD6-S65-3","html_url":"https://github.com/ESD6-S65-3","followers_url":"https://api.github.com/users/ESD6-S65-3/followers","following_url":"https://api.github.com/users/ESD6-S65-3/following{/other_user}","gists_url":"https://api.github.com/users/ESD6-S65-3/gists{/gist_id}","starred_url":"https://api.github.com/users/ESD6-S65-3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESD6-S65-3/subscriptions","organizations_url":"https://api.github.com/users/ESD6-S65-3/orgs","repos_url":"https://api.github.com/users/ESD6-S65-3/repos","events_url":"https://api.github.com/users/ESD6-S65-3/events{/privacy}","received_events_url":"https://api.github.com/users/ESD6-S65-3/received_events","type":"Organization","site_admin":false},"repo":{"id":122189517,"name":"Government-System","full_name":"ESD6-S65-3/Government-System","owner":{"login":"ESD6-S65-3","id":36185948,"avatar_url":"https://avatars1.githubusercontent.com/u/36185948?v=4","gravatar_id":"","url":"https://api.github.com/users/ESD6-S65-3","html_url":"https://github.com/ESD6-S65-3","followers_url":"https://api.github.com/users/ESD6-S65-3/followers","following_url":"https://api.github.com/users/ESD6-S65-3/following{/other_user}","gists_url":"https://api.github.com/users/ESD6-S65-3/gists{/gist_id}","starred_url":"https://api.github.com/users/ESD6-S65-3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESD6-S65-3/subscriptions","organizations_url":"https://api.github.com/users/ESD6-S65-3/orgs","repos_url":"https://api.github.com/users/ESD6-S65-3/repos","events_url":"https://api.github.com/users/ESD6-S65-3/events{/privacy}","received_events_url":"https://api.github.com/users/ESD6-S65-3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ESD6-S65-3/Government-System","description":"System used by the government, to moderate km-fees, invoices and car-owners.","fork":false,"url":"https://api.github.com/repos/ESD6-S65-3/Government-System","forks_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/forks","keys_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/teams","hooks_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/hooks","issue_events_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues/events{/number}","events_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/events","assignees_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/assignees{/user}","branches_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/branches{/branch}","tags_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/tags","blobs_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/refs{/sha}","trees_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/statuses/{sha}","languages_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/languages","stargazers_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/stargazers","contributors_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/contributors","subscribers_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/subscribers","subscription_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/subscription","commits_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/commits{/sha}","git_commits_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/commits{/sha}","comments_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/comments{/number}","issue_comment_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues/comments{/number}","contents_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/contents/{+path}","compare_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/merges","archive_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/downloads","issues_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues{/number}","pulls_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls{/number}","milestones_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/milestones{/number}","notifications_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/labels{/name}","releases_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/releases{/id}","deployments_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/deployments","created_at":"2018-02-20T11:27:10Z","updated_at":"2018-04-16T12:40:11Z","pushed_at":"2018-04-17T12:36:55Z","git_url":"git://github.com/ESD6-S65-3/Government-System.git","ssh_url":"git@github.com:ESD6-S65-3/Government-System.git","clone_url":"https://github.com/ESD6-S65-3/Government-System.git","svn_url":"https://github.com/ESD6-S65-3/Government-System","homepage":null,"size":239,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"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":"develop"}},"base":{"label":"ESD6-S65-3:develop","ref":"develop","sha":"2093233c9b9abed96899a7730acc6298e051a056","user":{"login":"ESD6-S65-3","id":36185948,"avatar_url":"https://avatars1.githubusercontent.com/u/36185948?v=4","gravatar_id":"","url":"https://api.github.com/users/ESD6-S65-3","html_url":"https://github.com/ESD6-S65-3","followers_url":"https://api.github.com/users/ESD6-S65-3/followers","following_url":"https://api.github.com/users/ESD6-S65-3/following{/other_user}","gists_url":"https://api.github.com/users/ESD6-S65-3/gists{/gist_id}","starred_url":"https://api.github.com/users/ESD6-S65-3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESD6-S65-3/subscriptions","organizations_url":"https://api.github.com/users/ESD6-S65-3/orgs","repos_url":"https://api.github.com/users/ESD6-S65-3/repos","events_url":"https://api.github.com/users/ESD6-S65-3/events{/privacy}","received_events_url":"https://api.github.com/users/ESD6-S65-3/received_events","type":"Organization","site_admin":false},"repo":{"id":122189517,"name":"Government-System","full_name":"ESD6-S65-3/Government-System","owner":{"login":"ESD6-S65-3","id":36185948,"avatar_url":"https://avatars1.githubusercontent.com/u/36185948?v=4","gravatar_id":"","url":"https://api.github.com/users/ESD6-S65-3","html_url":"https://github.com/ESD6-S65-3","followers_url":"https://api.github.com/users/ESD6-S65-3/followers","following_url":"https://api.github.com/users/ESD6-S65-3/following{/other_user}","gists_url":"https://api.github.com/users/ESD6-S65-3/gists{/gist_id}","starred_url":"https://api.github.com/users/ESD6-S65-3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESD6-S65-3/subscriptions","organizations_url":"https://api.github.com/users/ESD6-S65-3/orgs","repos_url":"https://api.github.com/users/ESD6-S65-3/repos","events_url":"https://api.github.com/users/ESD6-S65-3/events{/privacy}","received_events_url":"https://api.github.com/users/ESD6-S65-3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ESD6-S65-3/Government-System","description":"System used by the government, to moderate km-fees, invoices and car-owners.","fork":false,"url":"https://api.github.com/repos/ESD6-S65-3/Government-System","forks_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/forks","keys_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/teams","hooks_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/hooks","issue_events_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues/events{/number}","events_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/events","assignees_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/assignees{/user}","branches_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/branches{/branch}","tags_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/tags","blobs_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/refs{/sha}","trees_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/statuses/{sha}","languages_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/languages","stargazers_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/stargazers","contributors_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/contributors","subscribers_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/subscribers","subscription_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/subscription","commits_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/commits{/sha}","git_commits_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/git/commits{/sha}","comments_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/comments{/number}","issue_comment_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues/comments{/number}","contents_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/contents/{+path}","compare_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/merges","archive_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/downloads","issues_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues{/number}","pulls_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls{/number}","milestones_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/milestones{/number}","notifications_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/labels{/name}","releases_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/releases{/id}","deployments_url":"https://api.github.com/repos/ESD6-S65-3/Government-System/deployments","created_at":"2018-02-20T11:27:10Z","updated_at":"2018-04-16T12:40:11Z","pushed_at":"2018-04-17T12:36:55Z","git_url":"git://github.com/ESD6-S65-3/Government-System.git","ssh_url":"git@github.com:ESD6-S65-3/Government-System.git","clone_url":"https://github.com/ESD6-S65-3/Government-System.git","svn_url":"https://github.com/ESD6-S65-3/Government-System","homepage":null,"size":239,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/8"},"html":{"href":"https://github.com/ESD6-S65-3/Government-System/pull/8"},"issue":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues/8"},"comments":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/ESD6-S65-3/Government-System/statuses/e158ab498eb3e8bef75acc793106e61593b2f183"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"TehMessiah"}}