{"action":"created","comment":{"url":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/comments/140162024","pull_request_review_id":64192699,"id":140162024,"diff_hunk":"@@ -0,0 +1,47 @@\n+# Integration testing\n+\n+In DotWebStack we try to do as much happy flow testing inside an integration test sandbox. See the [integration-test module](https://github.com/dotwebstack/dotwebstack-framework/tree/master/integration-test) inside the core project.\n+\n+Through connecting all the different pieces we can simulate how the actual project will behave and we can ensure that we can deliver the features of the DotWebStack framework as a whole.\n+\n+As of now, we test both the OpenAPI and LinkedDataAPI through simple requests only. \n+\n+## DBEERPEDIA\n+\n+To have a solid test set, we provide the DBEERPEDIA dataset. This set describes detailed data about different beers around the world.\n+\n+\n+## Stub triple store\n+\n+In order to have our tests not be dependant on an external triple store, we have implemented a stub triple store which listens for requests on a pre-defined port. This stub implementation is a simple java `HttpServer` which translate a RDF `Model` to the turtle format, and simulates what a SPARQL endpoint would return, given simular requests. In order to influence the resulting result set, you can provide your own result model when starting your integration test.\n+\n+For example:\n+\n+First we need to decorate our test with the start and stop method. After this, the service starts listening on port 8900. \n+\n+\t```\n+    @BeforeClass\n+\tpublic static void startStub() {\n+\t  SparqlHttpStub.start();\n+\t}\n+\n+\t@AfterClass\n+\tpublic static void stopStub() {\n+\t  SparqlHttpStub.stop();\n+\t}\n+\t\n+    ```\n+\t\n+Then you need to tell the SparqlHttpStub which data you wish to return, should a query be executed:\n+\n+\t```\n+\t@Test\n+\tpublic void getBreweryCollection() {","path":"docs/qa/integrationtesting.md","position":39,"original_position":39,"commit_id":"71742c5b20400a09fa7617a7a9384f101e27c766","original_commit_id":"71742c5b20400a09fa7617a7a9384f101e27c766","user":{"login":"Arcturus5404","id":2432225,"avatar_url":"https://avatars2.githubusercontent.com/u/2432225?v=4","gravatar_id":"","url":"https://api.github.com/users/Arcturus5404","html_url":"https://github.com/Arcturus5404","followers_url":"https://api.github.com/users/Arcturus5404/followers","following_url":"https://api.github.com/users/Arcturus5404/following{/other_user}","gists_url":"https://api.github.com/users/Arcturus5404/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcturus5404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcturus5404/subscriptions","organizations_url":"https://api.github.com/users/Arcturus5404/orgs","repos_url":"https://api.github.com/users/Arcturus5404/repos","events_url":"https://api.github.com/users/Arcturus5404/events{/privacy}","received_events_url":"https://api.github.com/users/Arcturus5404/received_events","type":"User","site_admin":false},"body":"done! goed punt","created_at":"2017-09-21T06:56:35Z","updated_at":"2017-09-21T06:56:35Z","html_url":"https://github.com/dotwebstack/dotwebstack/pull/4#discussion_r140162024","pull_request_url":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/comments/140162024"},"html":{"href":"https://github.com/dotwebstack/dotwebstack/pull/4#discussion_r140162024"},"pull_request":{"href":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/4"}},"in_reply_to_id":139891340},"pull_request":{"url":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/4","id":140767126,"html_url":"https://github.com/dotwebstack/dotwebstack/pull/4","diff_url":"https://github.com/dotwebstack/dotwebstack/pull/4.diff","patch_url":"https://github.com/dotwebstack/dotwebstack/pull/4.patch","issue_url":"https://api.github.com/repos/dotwebstack/dotwebstack/issues/4","number":4,"state":"open","locked":false,"title":"Ldt 102","user":{"login":"Arcturus5404","id":2432225,"avatar_url":"https://avatars2.githubusercontent.com/u/2432225?v=4","gravatar_id":"","url":"https://api.github.com/users/Arcturus5404","html_url":"https://github.com/Arcturus5404","followers_url":"https://api.github.com/users/Arcturus5404/followers","following_url":"https://api.github.com/users/Arcturus5404/following{/other_user}","gists_url":"https://api.github.com/users/Arcturus5404/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcturus5404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcturus5404/subscriptions","organizations_url":"https://api.github.com/users/Arcturus5404/orgs","repos_url":"https://api.github.com/users/Arcturus5404/repos","events_url":"https://api.github.com/users/Arcturus5404/events{/privacy}","received_events_url":"https://api.github.com/users/Arcturus5404/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-13T08:49:34Z","updated_at":"2017-09-21T06:56:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bb6b2789e34640ed8db51625409850a4b665583","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/4/commits","review_comments_url":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/4/comments","review_comment_url":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotwebstack/dotwebstack/issues/4/comments","statuses_url":"https://api.github.com/repos/dotwebstack/dotwebstack/statuses/71742c5b20400a09fa7617a7a9384f101e27c766","head":{"label":"dotwebstack:LDT-102","ref":"LDT-102","sha":"71742c5b20400a09fa7617a7a9384f101e27c766","user":{"login":"dotwebstack","id":29657251,"avatar_url":"https://avatars1.githubusercontent.com/u/29657251?v=4","gravatar_id":"","url":"https://api.github.com/users/dotwebstack","html_url":"https://github.com/dotwebstack","followers_url":"https://api.github.com/users/dotwebstack/followers","following_url":"https://api.github.com/users/dotwebstack/following{/other_user}","gists_url":"https://api.github.com/users/dotwebstack/gists{/gist_id}","starred_url":"https://api.github.com/users/dotwebstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotwebstack/subscriptions","organizations_url":"https://api.github.com/users/dotwebstack/orgs","repos_url":"https://api.github.com/users/dotwebstack/repos","events_url":"https://api.github.com/users/dotwebstack/events{/privacy}","received_events_url":"https://api.github.com/users/dotwebstack/received_events","type":"Organization","site_admin":false},"repo":{"id":100277201,"name":"dotwebstack","full_name":"dotwebstack/dotwebstack","owner":{"login":"dotwebstack","id":29657251,"avatar_url":"https://avatars1.githubusercontent.com/u/29657251?v=4","gravatar_id":"","url":"https://api.github.com/users/dotwebstack","html_url":"https://github.com/dotwebstack","followers_url":"https://api.github.com/users/dotwebstack/followers","following_url":"https://api.github.com/users/dotwebstack/following{/other_user}","gists_url":"https://api.github.com/users/dotwebstack/gists{/gist_id}","starred_url":"https://api.github.com/users/dotwebstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotwebstack/subscriptions","organizations_url":"https://api.github.com/users/dotwebstack/orgs","repos_url":"https://api.github.com/users/dotwebstack/repos","events_url":"https://api.github.com/users/dotwebstack/events{/privacy}","received_events_url":"https://api.github.com/users/dotwebstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotwebstack/dotwebstack","description":null,"fork":false,"url":"https://api.github.com/repos/dotwebstack/dotwebstack","forks_url":"https://api.github.com/repos/dotwebstack/dotwebstack/forks","keys_url":"https://api.github.com/repos/dotwebstack/dotwebstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotwebstack/dotwebstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotwebstack/dotwebstack/teams","hooks_url":"https://api.github.com/repos/dotwebstack/dotwebstack/hooks","issue_events_url":"https://api.github.com/repos/dotwebstack/dotwebstack/issues/events{/number}","events_url":"https://api.github.com/repos/dotwebstack/dotwebstack/events","assignees_url":"https://api.github.com/repos/dotwebstack/dotwebstack/assignees{/user}","branches_url":"https://api.github.com/repos/dotwebstack/dotwebstack/branches{/branch}","tags_url":"https://api.github.com/repos/dotwebstack/dotwebstack/tags","blobs_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotwebstack/dotwebstack/statuses/{sha}","languages_url":"https://api.github.com/repos/dotwebstack/dotwebstack/languages","stargazers_url":"https://api.github.com/repos/dotwebstack/dotwebstack/stargazers","contributors_url":"https://api.github.com/repos/dotwebstack/dotwebstack/contributors","subscribers_url":"https://api.github.com/repos/dotwebstack/dotwebstack/subscribers","subscription_url":"https://api.github.com/repos/dotwebstack/dotwebstack/subscription","commits_url":"https://api.github.com/repos/dotwebstack/dotwebstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotwebstack/dotwebstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotwebstack/dotwebstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotwebstack/dotwebstack/contents/{+path}","compare_url":"https://api.github.com/repos/dotwebstack/dotwebstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotwebstack/dotwebstack/merges","archive_url":"https://api.github.com/repos/dotwebstack/dotwebstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotwebstack/dotwebstack/downloads","issues_url":"https://api.github.com/repos/dotwebstack/dotwebstack/issues{/number}","pulls_url":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls{/number}","milestones_url":"https://api.github.com/repos/dotwebstack/dotwebstack/milestones{/number}","notifications_url":"https://api.github.com/repos/dotwebstack/dotwebstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotwebstack/dotwebstack/labels{/name}","releases_url":"https://api.github.com/repos/dotwebstack/dotwebstack/releases{/id}","deployments_url":"https://api.github.com/repos/dotwebstack/dotwebstack/deployments","created_at":"2017-08-14T14:35:08Z","updated_at":"2017-08-22T08:17:37Z","pushed_at":"2017-09-19T10:09:47Z","git_url":"git://github.com/dotwebstack/dotwebstack.git","ssh_url":"git@github.com:dotwebstack/dotwebstack.git","clone_url":"https://github.com/dotwebstack/dotwebstack.git","svn_url":"https://github.com/dotwebstack/dotwebstack","homepage":null,"size":104,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"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":"dotwebstack:master","ref":"master","sha":"4313b9d3365135a8a27119d9913f73a68a446498","user":{"login":"dotwebstack","id":29657251,"avatar_url":"https://avatars1.githubusercontent.com/u/29657251?v=4","gravatar_id":"","url":"https://api.github.com/users/dotwebstack","html_url":"https://github.com/dotwebstack","followers_url":"https://api.github.com/users/dotwebstack/followers","following_url":"https://api.github.com/users/dotwebstack/following{/other_user}","gists_url":"https://api.github.com/users/dotwebstack/gists{/gist_id}","starred_url":"https://api.github.com/users/dotwebstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotwebstack/subscriptions","organizations_url":"https://api.github.com/users/dotwebstack/orgs","repos_url":"https://api.github.com/users/dotwebstack/repos","events_url":"https://api.github.com/users/dotwebstack/events{/privacy}","received_events_url":"https://api.github.com/users/dotwebstack/received_events","type":"Organization","site_admin":false},"repo":{"id":100277201,"name":"dotwebstack","full_name":"dotwebstack/dotwebstack","owner":{"login":"dotwebstack","id":29657251,"avatar_url":"https://avatars1.githubusercontent.com/u/29657251?v=4","gravatar_id":"","url":"https://api.github.com/users/dotwebstack","html_url":"https://github.com/dotwebstack","followers_url":"https://api.github.com/users/dotwebstack/followers","following_url":"https://api.github.com/users/dotwebstack/following{/other_user}","gists_url":"https://api.github.com/users/dotwebstack/gists{/gist_id}","starred_url":"https://api.github.com/users/dotwebstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotwebstack/subscriptions","organizations_url":"https://api.github.com/users/dotwebstack/orgs","repos_url":"https://api.github.com/users/dotwebstack/repos","events_url":"https://api.github.com/users/dotwebstack/events{/privacy}","received_events_url":"https://api.github.com/users/dotwebstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotwebstack/dotwebstack","description":null,"fork":false,"url":"https://api.github.com/repos/dotwebstack/dotwebstack","forks_url":"https://api.github.com/repos/dotwebstack/dotwebstack/forks","keys_url":"https://api.github.com/repos/dotwebstack/dotwebstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotwebstack/dotwebstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotwebstack/dotwebstack/teams","hooks_url":"https://api.github.com/repos/dotwebstack/dotwebstack/hooks","issue_events_url":"https://api.github.com/repos/dotwebstack/dotwebstack/issues/events{/number}","events_url":"https://api.github.com/repos/dotwebstack/dotwebstack/events","assignees_url":"https://api.github.com/repos/dotwebstack/dotwebstack/assignees{/user}","branches_url":"https://api.github.com/repos/dotwebstack/dotwebstack/branches{/branch}","tags_url":"https://api.github.com/repos/dotwebstack/dotwebstack/tags","blobs_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotwebstack/dotwebstack/statuses/{sha}","languages_url":"https://api.github.com/repos/dotwebstack/dotwebstack/languages","stargazers_url":"https://api.github.com/repos/dotwebstack/dotwebstack/stargazers","contributors_url":"https://api.github.com/repos/dotwebstack/dotwebstack/contributors","subscribers_url":"https://api.github.com/repos/dotwebstack/dotwebstack/subscribers","subscription_url":"https://api.github.com/repos/dotwebstack/dotwebstack/subscription","commits_url":"https://api.github.com/repos/dotwebstack/dotwebstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotwebstack/dotwebstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotwebstack/dotwebstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotwebstack/dotwebstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotwebstack/dotwebstack/contents/{+path}","compare_url":"https://api.github.com/repos/dotwebstack/dotwebstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotwebstack/dotwebstack/merges","archive_url":"https://api.github.com/repos/dotwebstack/dotwebstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotwebstack/dotwebstack/downloads","issues_url":"https://api.github.com/repos/dotwebstack/dotwebstack/issues{/number}","pulls_url":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls{/number}","milestones_url":"https://api.github.com/repos/dotwebstack/dotwebstack/milestones{/number}","notifications_url":"https://api.github.com/repos/dotwebstack/dotwebstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotwebstack/dotwebstack/labels{/name}","releases_url":"https://api.github.com/repos/dotwebstack/dotwebstack/releases{/id}","deployments_url":"https://api.github.com/repos/dotwebstack/dotwebstack/deployments","created_at":"2017-08-14T14:35:08Z","updated_at":"2017-08-22T08:17:37Z","pushed_at":"2017-09-19T10:09:47Z","git_url":"git://github.com/dotwebstack/dotwebstack.git","ssh_url":"git@github.com:dotwebstack/dotwebstack.git","clone_url":"https://github.com/dotwebstack/dotwebstack.git","svn_url":"https://github.com/dotwebstack/dotwebstack","homepage":null,"size":104,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"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/dotwebstack/dotwebstack/pulls/4"},"html":{"href":"https://github.com/dotwebstack/dotwebstack/pull/4"},"issue":{"href":"https://api.github.com/repos/dotwebstack/dotwebstack/issues/4"},"comments":{"href":"https://api.github.com/repos/dotwebstack/dotwebstack/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotwebstack/dotwebstack/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/dotwebstack/dotwebstack/statuses/71742c5b20400a09fa7617a7a9384f101e27c766"}},"author_association":"NONE"}}
{"actor":{"display_login":"Arcturus5404"}}