{"action":"created","comment":{"url":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/comments/70578044","id":70578044,"diff_hunk":"@@ -3,24 +3,30 @@\n import com.google.inject.Guice;\n import com.google.inject.Injector;\n import com.google.inject.Module;\n+import no.difi.idporten.oidc.proxy.api.CookieStorage;\n import no.difi.idporten.oidc.proxy.config.ConfigModule;\n import no.difi.idporten.oidc.proxy.storage.StorageModule;\n+import org.testng.annotations.AfterClass;\n+import org.testng.annotations.BeforeClass;\n import org.testng.annotations.Test;\n \n import java.util.ArrayList;\n \n public class Main {\n \n+    private Thread thread;\n+\n     @Test\n     public void main() throws Exception {\n         Injector injector = Guice.createInjector(new ArrayList<Module>() {{\n             add(new ConfigModule());\n             add(new StorageModule());\n             add(new ProxyModule());\n         }});\n-        injector.getInstance(NettyHttpListener.class).run();\n+        thread = new Thread(injector.getInstance(NettyHttpListener.class));\n+        thread.start();\n \n+        Thread.sleep(1_000);","path":"proxy-proxy/src/test/java/no/difi/idporten/oidc/proxy/proxy/Main.java","position":28,"original_position":28,"commit_id":"3c1e644a73cd09f21e579df50153c6f4a24a19e2","original_commit_id":"3c1e644a73cd09f21e579df50153c6f4a24a19e2","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: ['1_000' is a magic number.](https://www.codacy.com/app/klakegg/dc16-oidc-proxy/file/2976773375/issues/source?bid=3400779&fileBranchId=3439754#l29)","created_at":"2016-07-13T07:45:42Z","updated_at":"2016-07-13T07:45:42Z","html_url":"https://github.com/difi/dc16-oidc-proxy/pull/74#discussion_r70578044","pull_request_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/comments/70578044"},"html":{"href":"https://github.com/difi/dc16-oidc-proxy/pull/74#discussion_r70578044"},"pull_request":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/74","id":77243601,"html_url":"https://github.com/difi/dc16-oidc-proxy/pull/74","diff_url":"https://github.com/difi/dc16-oidc-proxy/pull/74.diff","patch_url":"https://github.com/difi/dc16-oidc-proxy/pull/74.patch","issue_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues/74","number":74,"state":"open","locked":false,"title":"Integration testing","user":{"login":"viktorfa","id":5357936,"avatar_url":"https://avatars.githubusercontent.com/u/5357936?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorfa","html_url":"https://github.com/viktorfa","followers_url":"https://api.github.com/users/viktorfa/followers","following_url":"https://api.github.com/users/viktorfa/following{/other_user}","gists_url":"https://api.github.com/users/viktorfa/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorfa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorfa/subscriptions","organizations_url":"https://api.github.com/users/viktorfa/orgs","repos_url":"https://api.github.com/users/viktorfa/repos","events_url":"https://api.github.com/users/viktorfa/events{/privacy}","received_events_url":"https://api.github.com/users/viktorfa/received_events","type":"User","site_admin":false},"body":"Har lagd noen tester som tester den grunnleggende oppførselen til hele programmet","created_at":"2016-07-13T07:44:15Z","updated_at":"2016-07-13T07:45:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42cb2c6c523444ddcece1858686581f959410a13","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/74/commits","review_comments_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/74/comments","review_comment_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues/74/comments","statuses_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/statuses/3c1e644a73cd09f21e579df50153c6f4a24a19e2","head":{"label":"difi:integration-testing","ref":"integration-testing","sha":"3c1e644a73cd09f21e579df50153c6f4a24a19e2","user":{"login":"difi","id":226592,"avatar_url":"https://avatars.githubusercontent.com/u/226592?v=3","gravatar_id":"","url":"https://api.github.com/users/difi","html_url":"https://github.com/difi","followers_url":"https://api.github.com/users/difi/followers","following_url":"https://api.github.com/users/difi/following{/other_user}","gists_url":"https://api.github.com/users/difi/gists{/gist_id}","starred_url":"https://api.github.com/users/difi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/difi/subscriptions","organizations_url":"https://api.github.com/users/difi/orgs","repos_url":"https://api.github.com/users/difi/repos","events_url":"https://api.github.com/users/difi/events{/privacy}","received_events_url":"https://api.github.com/users/difi/received_events","type":"Organization","site_admin":false},"repo":{"id":60424566,"name":"dc16-oidc-proxy","full_name":"difi/dc16-oidc-proxy","owner":{"login":"difi","id":226592,"avatar_url":"https://avatars.githubusercontent.com/u/226592?v=3","gravatar_id":"","url":"https://api.github.com/users/difi","html_url":"https://github.com/difi","followers_url":"https://api.github.com/users/difi/followers","following_url":"https://api.github.com/users/difi/following{/other_user}","gists_url":"https://api.github.com/users/difi/gists{/gist_id}","starred_url":"https://api.github.com/users/difi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/difi/subscriptions","organizations_url":"https://api.github.com/users/difi/orgs","repos_url":"https://api.github.com/users/difi/repos","events_url":"https://api.github.com/users/difi/events{/privacy}","received_events_url":"https://api.github.com/users/difi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/difi/dc16-oidc-proxy","description":"DifiCamp 2016 Open ID Connect Proxy project","fork":false,"url":"https://api.github.com/repos/difi/dc16-oidc-proxy","forks_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/forks","keys_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/teams","hooks_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/hooks","issue_events_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/events","assignees_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/tags","blobs_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/languages","stargazers_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/stargazers","contributors_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/contributors","subscribers_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/subscribers","subscription_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/subscription","commits_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/merges","archive_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/downloads","issues_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/labels{/name}","releases_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/releases{/id}","deployments_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/deployments","created_at":"2016-06-04T18:30:42Z","updated_at":"2016-06-16T05:47:46Z","pushed_at":"2016-07-13T07:44:15Z","git_url":"git://github.com/difi/dc16-oidc-proxy.git","ssh_url":"git@github.com:difi/dc16-oidc-proxy.git","clone_url":"https://github.com/difi/dc16-oidc-proxy.git","svn_url":"https://github.com/difi/dc16-oidc-proxy","homepage":null,"size":499,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"difi:master","ref":"master","sha":"a6cbee83d3eb0f05de4f4091c6b6bdde30363312","user":{"login":"difi","id":226592,"avatar_url":"https://avatars.githubusercontent.com/u/226592?v=3","gravatar_id":"","url":"https://api.github.com/users/difi","html_url":"https://github.com/difi","followers_url":"https://api.github.com/users/difi/followers","following_url":"https://api.github.com/users/difi/following{/other_user}","gists_url":"https://api.github.com/users/difi/gists{/gist_id}","starred_url":"https://api.github.com/users/difi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/difi/subscriptions","organizations_url":"https://api.github.com/users/difi/orgs","repos_url":"https://api.github.com/users/difi/repos","events_url":"https://api.github.com/users/difi/events{/privacy}","received_events_url":"https://api.github.com/users/difi/received_events","type":"Organization","site_admin":false},"repo":{"id":60424566,"name":"dc16-oidc-proxy","full_name":"difi/dc16-oidc-proxy","owner":{"login":"difi","id":226592,"avatar_url":"https://avatars.githubusercontent.com/u/226592?v=3","gravatar_id":"","url":"https://api.github.com/users/difi","html_url":"https://github.com/difi","followers_url":"https://api.github.com/users/difi/followers","following_url":"https://api.github.com/users/difi/following{/other_user}","gists_url":"https://api.github.com/users/difi/gists{/gist_id}","starred_url":"https://api.github.com/users/difi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/difi/subscriptions","organizations_url":"https://api.github.com/users/difi/orgs","repos_url":"https://api.github.com/users/difi/repos","events_url":"https://api.github.com/users/difi/events{/privacy}","received_events_url":"https://api.github.com/users/difi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/difi/dc16-oidc-proxy","description":"DifiCamp 2016 Open ID Connect Proxy project","fork":false,"url":"https://api.github.com/repos/difi/dc16-oidc-proxy","forks_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/forks","keys_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/teams","hooks_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/hooks","issue_events_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/events","assignees_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/tags","blobs_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/languages","stargazers_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/stargazers","contributors_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/contributors","subscribers_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/subscribers","subscription_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/subscription","commits_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/merges","archive_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/downloads","issues_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/labels{/name}","releases_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/releases{/id}","deployments_url":"https://api.github.com/repos/difi/dc16-oidc-proxy/deployments","created_at":"2016-06-04T18:30:42Z","updated_at":"2016-06-16T05:47:46Z","pushed_at":"2016-07-13T07:44:15Z","git_url":"git://github.com/difi/dc16-oidc-proxy.git","ssh_url":"git@github.com:difi/dc16-oidc-proxy.git","clone_url":"https://github.com/difi/dc16-oidc-proxy.git","svn_url":"https://github.com/difi/dc16-oidc-proxy","homepage":null,"size":499,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/74"},"html":{"href":"https://github.com/difi/dc16-oidc-proxy/pull/74"},"issue":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues/74"},"comments":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/difi/dc16-oidc-proxy/statuses/3c1e644a73cd09f21e579df50153c6f4a24a19e2"}}}}
{"actor":{"display_login":"codacy-bot"}}