{"action":"created","comment":{"url":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/comments/77301197","id":77301197,"diff_hunk":"@@ -0,0 +1,43 @@\n+/**\r\n+ * Copyright 2016 Smart Society Services B.V.\r\n+ *\r\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License.  You may obtain a copy of the License at\r\n+ *\r\n+ *     http://www.apache.org/licenses/LICENSE-2.0\r\n+ */\r\n+package com.alliander.osgp.platform.cucumber.hooks;\r\n+\r\n+import org.springframework.beans.factory.annotation.Autowired;\r\n+import org.springframework.context.annotation.Configuration;\r\n+import org.springframework.context.annotation.PropertySource;\r\n+import org.springframework.stereotype.Component;\r\n+\r\n+import com.alliander.osgp.domain.core.entities.Device;\r\n+import com.alliander.osgp.domain.core.repositories.DeviceRepository;\r\n+\r\n+/**\r\n+ * helper class for devices to provide database access. It is used to prepare\r\n+ * the database beforehand, and test for the existence of specific records\r\n+ * afterwards.\r\n+ *\r\n+ */\r\n+@Component\r\n+@Configuration\r\n+@PropertySource(\"file:/etc/osp/osgp-cucumber-response-data-smart-metering.properties\")\r\n+public class DeviceHooks {\r\n+\r\n+    @Autowired\r\n+    private DeviceRepository deviceRepository;\r\n+\r\n+    public void deactivateDevice(String mbusDeviceId) {\r","path":"integration-tests-cucumber/src/test/java/com/alliander/osgp/platform/cucumber/hooks/DeviceHooks.java","position":32,"original_position":32,"commit_id":"e41423343c323790fe9d769c8e00893f30aa2187","original_commit_id":"e41423343c323790fe9d769c8e00893f30aa2187","user":{"login":"hannek24","id":6457709,"avatar_url":"https://avatars.githubusercontent.com/u/6457709?v=3","gravatar_id":"","url":"https://api.github.com/users/hannek24","html_url":"https://github.com/hannek24","followers_url":"https://api.github.com/users/hannek24/followers","following_url":"https://api.github.com/users/hannek24/following{/other_user}","gists_url":"https://api.github.com/users/hannek24/gists{/gist_id}","starred_url":"https://api.github.com/users/hannek24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannek24/subscriptions","organizations_url":"https://api.github.com/users/hannek24/orgs","repos_url":"https://api.github.com/users/hannek24/repos","events_url":"https://api.github.com/users/hannek24/events{/privacy}","received_events_url":"https://api.github.com/users/hannek24/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-09-02T06:54:52Z","updated_at":"2016-09-02T06:54:52Z","html_url":"https://github.com/OSGP/Integration-Tests/pull/53#discussion_r77301197","pull_request_url":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/comments/77301197"},"html":{"href":"https://github.com/OSGP/Integration-Tests/pull/53#discussion_r77301197"},"pull_request":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/53","id":83611722,"html_url":"https://github.com/OSGP/Integration-Tests/pull/53","diff_url":"https://github.com/OSGP/Integration-Tests/pull/53.diff","patch_url":"https://github.com/OSGP/Integration-Tests/pull/53.patch","issue_url":"https://api.github.com/repos/OSGP/Integration-Tests/issues/53","number":53,"state":"open","locked":false,"title":"Slim 637 couple mbus device","user":{"login":"hannek24","id":6457709,"avatar_url":"https://avatars.githubusercontent.com/u/6457709?v=3","gravatar_id":"","url":"https://api.github.com/users/hannek24","html_url":"https://github.com/hannek24","followers_url":"https://api.github.com/users/hannek24/followers","following_url":"https://api.github.com/users/hannek24/following{/other_user}","gists_url":"https://api.github.com/users/hannek24/gists{/gist_id}","starred_url":"https://api.github.com/users/hannek24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannek24/subscriptions","organizations_url":"https://api.github.com/users/hannek24/orgs","repos_url":"https://api.github.com/users/hannek24/repos","events_url":"https://api.github.com/users/hannek24/events{/privacy}","received_events_url":"https://api.github.com/users/hannek24/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-01T10:59:26Z","updated_at":"2016-09-02T06:54:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff888e22f00aabc9a873e5ea596e098b4b4be4ba","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/53/commits","review_comments_url":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/53/comments","review_comment_url":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OSGP/Integration-Tests/issues/53/comments","statuses_url":"https://api.github.com/repos/OSGP/Integration-Tests/statuses/e41423343c323790fe9d769c8e00893f30aa2187","head":{"label":"OSGP:SLIM-637-couple-mbus-device","ref":"SLIM-637-couple-mbus-device","sha":"e41423343c323790fe9d769c8e00893f30aa2187","user":{"login":"OSGP","id":11352045,"avatar_url":"https://avatars.githubusercontent.com/u/11352045?v=3","gravatar_id":"","url":"https://api.github.com/users/OSGP","html_url":"https://github.com/OSGP","followers_url":"https://api.github.com/users/OSGP/followers","following_url":"https://api.github.com/users/OSGP/following{/other_user}","gists_url":"https://api.github.com/users/OSGP/gists{/gist_id}","starred_url":"https://api.github.com/users/OSGP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OSGP/subscriptions","organizations_url":"https://api.github.com/users/OSGP/orgs","repos_url":"https://api.github.com/users/OSGP/repos","events_url":"https://api.github.com/users/OSGP/events{/privacy}","received_events_url":"https://api.github.com/users/OSGP/received_events","type":"Organization","site_admin":false},"repo":{"id":32994878,"name":"Integration-Tests","full_name":"OSGP/Integration-Tests","owner":{"login":"OSGP","id":11352045,"avatar_url":"https://avatars.githubusercontent.com/u/11352045?v=3","gravatar_id":"","url":"https://api.github.com/users/OSGP","html_url":"https://github.com/OSGP","followers_url":"https://api.github.com/users/OSGP/followers","following_url":"https://api.github.com/users/OSGP/following{/other_user}","gists_url":"https://api.github.com/users/OSGP/gists{/gist_id}","starred_url":"https://api.github.com/users/OSGP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OSGP/subscriptions","organizations_url":"https://api.github.com/users/OSGP/orgs","repos_url":"https://api.github.com/users/OSGP/repos","events_url":"https://api.github.com/users/OSGP/events{/privacy}","received_events_url":"https://api.github.com/users/OSGP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OSGP/Integration-Tests","description":"Continious integration tests for OSGP","fork":false,"url":"https://api.github.com/repos/OSGP/Integration-Tests","forks_url":"https://api.github.com/repos/OSGP/Integration-Tests/forks","keys_url":"https://api.github.com/repos/OSGP/Integration-Tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OSGP/Integration-Tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OSGP/Integration-Tests/teams","hooks_url":"https://api.github.com/repos/OSGP/Integration-Tests/hooks","issue_events_url":"https://api.github.com/repos/OSGP/Integration-Tests/issues/events{/number}","events_url":"https://api.github.com/repos/OSGP/Integration-Tests/events","assignees_url":"https://api.github.com/repos/OSGP/Integration-Tests/assignees{/user}","branches_url":"https://api.github.com/repos/OSGP/Integration-Tests/branches{/branch}","tags_url":"https://api.github.com/repos/OSGP/Integration-Tests/tags","blobs_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OSGP/Integration-Tests/statuses/{sha}","languages_url":"https://api.github.com/repos/OSGP/Integration-Tests/languages","stargazers_url":"https://api.github.com/repos/OSGP/Integration-Tests/stargazers","contributors_url":"https://api.github.com/repos/OSGP/Integration-Tests/contributors","subscribers_url":"https://api.github.com/repos/OSGP/Integration-Tests/subscribers","subscription_url":"https://api.github.com/repos/OSGP/Integration-Tests/subscription","commits_url":"https://api.github.com/repos/OSGP/Integration-Tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/OSGP/Integration-Tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/OSGP/Integration-Tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/OSGP/Integration-Tests/contents/{+path}","compare_url":"https://api.github.com/repos/OSGP/Integration-Tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OSGP/Integration-Tests/merges","archive_url":"https://api.github.com/repos/OSGP/Integration-Tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OSGP/Integration-Tests/downloads","issues_url":"https://api.github.com/repos/OSGP/Integration-Tests/issues{/number}","pulls_url":"https://api.github.com/repos/OSGP/Integration-Tests/pulls{/number}","milestones_url":"https://api.github.com/repos/OSGP/Integration-Tests/milestones{/number}","notifications_url":"https://api.github.com/repos/OSGP/Integration-Tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OSGP/Integration-Tests/labels{/name}","releases_url":"https://api.github.com/repos/OSGP/Integration-Tests/releases{/id}","deployments_url":"https://api.github.com/repos/OSGP/Integration-Tests/deployments","created_at":"2015-03-27T15:47:30Z","updated_at":"2016-07-13T19:10:40Z","pushed_at":"2016-09-02T06:16:39Z","git_url":"git://github.com/OSGP/Integration-Tests.git","ssh_url":"git@github.com:OSGP/Integration-Tests.git","clone_url":"https://github.com/OSGP/Integration-Tests.git","svn_url":"https://github.com/OSGP/Integration-Tests","homepage":"http://www.opensmartgridplatform.org/","size":34612,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"development"}},"base":{"label":"OSGP:development","ref":"development","sha":"a6d2cacdce1fb2d989a1c1c6c6180686040a24c3","user":{"login":"OSGP","id":11352045,"avatar_url":"https://avatars.githubusercontent.com/u/11352045?v=3","gravatar_id":"","url":"https://api.github.com/users/OSGP","html_url":"https://github.com/OSGP","followers_url":"https://api.github.com/users/OSGP/followers","following_url":"https://api.github.com/users/OSGP/following{/other_user}","gists_url":"https://api.github.com/users/OSGP/gists{/gist_id}","starred_url":"https://api.github.com/users/OSGP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OSGP/subscriptions","organizations_url":"https://api.github.com/users/OSGP/orgs","repos_url":"https://api.github.com/users/OSGP/repos","events_url":"https://api.github.com/users/OSGP/events{/privacy}","received_events_url":"https://api.github.com/users/OSGP/received_events","type":"Organization","site_admin":false},"repo":{"id":32994878,"name":"Integration-Tests","full_name":"OSGP/Integration-Tests","owner":{"login":"OSGP","id":11352045,"avatar_url":"https://avatars.githubusercontent.com/u/11352045?v=3","gravatar_id":"","url":"https://api.github.com/users/OSGP","html_url":"https://github.com/OSGP","followers_url":"https://api.github.com/users/OSGP/followers","following_url":"https://api.github.com/users/OSGP/following{/other_user}","gists_url":"https://api.github.com/users/OSGP/gists{/gist_id}","starred_url":"https://api.github.com/users/OSGP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OSGP/subscriptions","organizations_url":"https://api.github.com/users/OSGP/orgs","repos_url":"https://api.github.com/users/OSGP/repos","events_url":"https://api.github.com/users/OSGP/events{/privacy}","received_events_url":"https://api.github.com/users/OSGP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OSGP/Integration-Tests","description":"Continious integration tests for OSGP","fork":false,"url":"https://api.github.com/repos/OSGP/Integration-Tests","forks_url":"https://api.github.com/repos/OSGP/Integration-Tests/forks","keys_url":"https://api.github.com/repos/OSGP/Integration-Tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OSGP/Integration-Tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OSGP/Integration-Tests/teams","hooks_url":"https://api.github.com/repos/OSGP/Integration-Tests/hooks","issue_events_url":"https://api.github.com/repos/OSGP/Integration-Tests/issues/events{/number}","events_url":"https://api.github.com/repos/OSGP/Integration-Tests/events","assignees_url":"https://api.github.com/repos/OSGP/Integration-Tests/assignees{/user}","branches_url":"https://api.github.com/repos/OSGP/Integration-Tests/branches{/branch}","tags_url":"https://api.github.com/repos/OSGP/Integration-Tests/tags","blobs_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OSGP/Integration-Tests/statuses/{sha}","languages_url":"https://api.github.com/repos/OSGP/Integration-Tests/languages","stargazers_url":"https://api.github.com/repos/OSGP/Integration-Tests/stargazers","contributors_url":"https://api.github.com/repos/OSGP/Integration-Tests/contributors","subscribers_url":"https://api.github.com/repos/OSGP/Integration-Tests/subscribers","subscription_url":"https://api.github.com/repos/OSGP/Integration-Tests/subscription","commits_url":"https://api.github.com/repos/OSGP/Integration-Tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/OSGP/Integration-Tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/OSGP/Integration-Tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/OSGP/Integration-Tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/OSGP/Integration-Tests/contents/{+path}","compare_url":"https://api.github.com/repos/OSGP/Integration-Tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OSGP/Integration-Tests/merges","archive_url":"https://api.github.com/repos/OSGP/Integration-Tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OSGP/Integration-Tests/downloads","issues_url":"https://api.github.com/repos/OSGP/Integration-Tests/issues{/number}","pulls_url":"https://api.github.com/repos/OSGP/Integration-Tests/pulls{/number}","milestones_url":"https://api.github.com/repos/OSGP/Integration-Tests/milestones{/number}","notifications_url":"https://api.github.com/repos/OSGP/Integration-Tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OSGP/Integration-Tests/labels{/name}","releases_url":"https://api.github.com/repos/OSGP/Integration-Tests/releases{/id}","deployments_url":"https://api.github.com/repos/OSGP/Integration-Tests/deployments","created_at":"2015-03-27T15:47:30Z","updated_at":"2016-07-13T19:10:40Z","pushed_at":"2016-09-02T06:16:39Z","git_url":"git://github.com/OSGP/Integration-Tests.git","ssh_url":"git@github.com:OSGP/Integration-Tests.git","clone_url":"https://github.com/OSGP/Integration-Tests.git","svn_url":"https://github.com/OSGP/Integration-Tests","homepage":"http://www.opensmartgridplatform.org/","size":34612,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/53"},"html":{"href":"https://github.com/OSGP/Integration-Tests/pull/53"},"issue":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/issues/53"},"comments":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/OSGP/Integration-Tests/statuses/e41423343c323790fe9d769c8e00893f30aa2187"}}}}
{"actor":{"display_login":"hannek24"}}