{"action":"created","comment":{"url":"https://api.github.com/repos/dropwizard/dropwizard/pulls/comments/73426541","id":73426541,"diff_hunk":"@@ -81,7 +92,21 @@ public DropwizardTestSupport(Class<? extends Application<C>> applicationClass, S\n      *   be manipulated in any way, no overriding\n      */\n     public DropwizardTestSupport(Class<? extends Application<C>> applicationClass,\n-            C configuration) {\n+                                 C configuration) {\n+        this(applicationClass, configuration, ServerCommand::new);\n+    }\n+\n+\n+    /**\n+     * Alternate constructor that allows specifying the command the Dropwizard application is started with.\n+     * @since 1.1.0\n+     * @param applicationClass Type of Application to create\n+     * @param configuration Pre-constructed configuration object caller provides; will not","path":"dropwizard-testing/src/main/java/io/dropwizard/testing/DropwizardTestSupport.java","position":58,"original_position":58,"commit_id":"b804e41d9dbcd0cce0245f87611546b041368629","original_commit_id":"d2adea3294d87084bc44f64778ea8eb09a6219d7","user":{"login":"evnm","id":110020,"avatar_url":"https://avatars.githubusercontent.com/u/110020?v=3","gravatar_id":"","url":"https://api.github.com/users/evnm","html_url":"https://github.com/evnm","followers_url":"https://api.github.com/users/evnm/followers","following_url":"https://api.github.com/users/evnm/following{/other_user}","gists_url":"https://api.github.com/users/evnm/gists{/gist_id}","starred_url":"https://api.github.com/users/evnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evnm/subscriptions","organizations_url":"https://api.github.com/users/evnm/orgs","repos_url":"https://api.github.com/users/evnm/repos","events_url":"https://api.github.com/users/evnm/events{/privacy}","received_events_url":"https://api.github.com/users/evnm/received_events","type":"User","site_admin":false},"body":"Nope, I was just pointing out that the `configuration` parameter doc is either clipped or needs rewording.","created_at":"2016-08-03T21:39:12Z","updated_at":"2016-08-03T21:39:12Z","html_url":"https://github.com/dropwizard/dropwizard/pull/1666#discussion_r73426541","pull_request_url":"https://api.github.com/repos/dropwizard/dropwizard/pulls/1666","_links":{"self":{"href":"https://api.github.com/repos/dropwizard/dropwizard/pulls/comments/73426541"},"html":{"href":"https://github.com/dropwizard/dropwizard/pull/1666#discussion_r73426541"},"pull_request":{"href":"https://api.github.com/repos/dropwizard/dropwizard/pulls/1666"}}},"pull_request":{"url":"https://api.github.com/repos/dropwizard/dropwizard/pulls/1666","id":79975771,"html_url":"https://github.com/dropwizard/dropwizard/pull/1666","diff_url":"https://github.com/dropwizard/dropwizard/pull/1666.diff","patch_url":"https://github.com/dropwizard/dropwizard/pull/1666.patch","issue_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1666","number":1666,"state":"open","locked":false,"title":"Refactored DropwizardAppRule support running different EnvironmentCommands","user":{"login":"tburch","id":46953,"avatar_url":"https://avatars.githubusercontent.com/u/46953?v=3","gravatar_id":"","url":"https://api.github.com/users/tburch","html_url":"https://github.com/tburch","followers_url":"https://api.github.com/users/tburch/followers","following_url":"https://api.github.com/users/tburch/following{/other_user}","gists_url":"https://api.github.com/users/tburch/gists{/gist_id}","starred_url":"https://api.github.com/users/tburch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tburch/subscriptions","organizations_url":"https://api.github.com/users/tburch/orgs","repos_url":"https://api.github.com/users/tburch/repos","events_url":"https://api.github.com/users/tburch/events{/privacy}","received_events_url":"https://api.github.com/users/tburch/received_events","type":"User","site_admin":false},"body":"I'm working on writing a [gRPC](http://www.grpc.io/) `EnvironmentCommand` for running gRPC in Dropwizard and needed the ability to be able to use a `DropwizardAppRule` for testing. \r\n\r\nThis pull request adds constructor parameters to `DropwizardAppRule` and `DropwizardTestSupport` so you can specify a `Function` that will instantiate the `EnvironmentCommand` that's run from `DropwizardTestSupport`. `ServerCommand` was used everywhere as a default to maintain backwards compatibility.","created_at":"2016-08-03T20:45:33Z","updated_at":"2016-08-03T21:39:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12268dfd914ff613cdb040ed5ae6b1321172d41b","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dropwizard/dropwizard/milestones/15","html_url":"https://github.com/dropwizard/dropwizard/milestones/1.1.0","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/milestones/15/labels","id":1807218,"number":15,"title":"1.1.0","description":"","creator":{"login":"nickbabcock","id":2106129,"avatar_url":"https://avatars.githubusercontent.com/u/2106129?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbabcock","html_url":"https://github.com/nickbabcock","followers_url":"https://api.github.com/users/nickbabcock/followers","following_url":"https://api.github.com/users/nickbabcock/following{/other_user}","gists_url":"https://api.github.com/users/nickbabcock/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbabcock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbabcock/subscriptions","organizations_url":"https://api.github.com/users/nickbabcock/orgs","repos_url":"https://api.github.com/users/nickbabcock/repos","events_url":"https://api.github.com/users/nickbabcock/events{/privacy}","received_events_url":"https://api.github.com/users/nickbabcock/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":11,"state":"open","created_at":"2016-06-03T13:45:41Z","updated_at":"2016-08-03T20:51:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/dropwizard/dropwizard/pulls/1666/commits","review_comments_url":"https://api.github.com/repos/dropwizard/dropwizard/pulls/1666/comments","review_comment_url":"https://api.github.com/repos/dropwizard/dropwizard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1666/comments","statuses_url":"https://api.github.com/repos/dropwizard/dropwizard/statuses/b804e41d9dbcd0cce0245f87611546b041368629","head":{"label":"tburch:AlertnateCommandsInDropwizardAppRule","ref":"AlertnateCommandsInDropwizardAppRule","sha":"b804e41d9dbcd0cce0245f87611546b041368629","user":{"login":"tburch","id":46953,"avatar_url":"https://avatars.githubusercontent.com/u/46953?v=3","gravatar_id":"","url":"https://api.github.com/users/tburch","html_url":"https://github.com/tburch","followers_url":"https://api.github.com/users/tburch/followers","following_url":"https://api.github.com/users/tburch/following{/other_user}","gists_url":"https://api.github.com/users/tburch/gists{/gist_id}","starred_url":"https://api.github.com/users/tburch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tburch/subscriptions","organizations_url":"https://api.github.com/users/tburch/orgs","repos_url":"https://api.github.com/users/tburch/repos","events_url":"https://api.github.com/users/tburch/events{/privacy}","received_events_url":"https://api.github.com/users/tburch/received_events","type":"User","site_admin":false},"repo":{"id":14594661,"name":"dropwizard","full_name":"tburch/dropwizard","owner":{"login":"tburch","id":46953,"avatar_url":"https://avatars.githubusercontent.com/u/46953?v=3","gravatar_id":"","url":"https://api.github.com/users/tburch","html_url":"https://github.com/tburch","followers_url":"https://api.github.com/users/tburch/followers","following_url":"https://api.github.com/users/tburch/following{/other_user}","gists_url":"https://api.github.com/users/tburch/gists{/gist_id}","starred_url":"https://api.github.com/users/tburch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tburch/subscriptions","organizations_url":"https://api.github.com/users/tburch/orgs","repos_url":"https://api.github.com/users/tburch/repos","events_url":"https://api.github.com/users/tburch/events{/privacy}","received_events_url":"https://api.github.com/users/tburch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tburch/dropwizard","description":"A damn simple library for building production-ready RESTful web services.","fork":true,"url":"https://api.github.com/repos/tburch/dropwizard","forks_url":"https://api.github.com/repos/tburch/dropwizard/forks","keys_url":"https://api.github.com/repos/tburch/dropwizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tburch/dropwizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tburch/dropwizard/teams","hooks_url":"https://api.github.com/repos/tburch/dropwizard/hooks","issue_events_url":"https://api.github.com/repos/tburch/dropwizard/issues/events{/number}","events_url":"https://api.github.com/repos/tburch/dropwizard/events","assignees_url":"https://api.github.com/repos/tburch/dropwizard/assignees{/user}","branches_url":"https://api.github.com/repos/tburch/dropwizard/branches{/branch}","tags_url":"https://api.github.com/repos/tburch/dropwizard/tags","blobs_url":"https://api.github.com/repos/tburch/dropwizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tburch/dropwizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tburch/dropwizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/tburch/dropwizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tburch/dropwizard/statuses/{sha}","languages_url":"https://api.github.com/repos/tburch/dropwizard/languages","stargazers_url":"https://api.github.com/repos/tburch/dropwizard/stargazers","contributors_url":"https://api.github.com/repos/tburch/dropwizard/contributors","subscribers_url":"https://api.github.com/repos/tburch/dropwizard/subscribers","subscription_url":"https://api.github.com/repos/tburch/dropwizard/subscription","commits_url":"https://api.github.com/repos/tburch/dropwizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/tburch/dropwizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/tburch/dropwizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/tburch/dropwizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/tburch/dropwizard/contents/{+path}","compare_url":"https://api.github.com/repos/tburch/dropwizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tburch/dropwizard/merges","archive_url":"https://api.github.com/repos/tburch/dropwizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tburch/dropwizard/downloads","issues_url":"https://api.github.com/repos/tburch/dropwizard/issues{/number}","pulls_url":"https://api.github.com/repos/tburch/dropwizard/pulls{/number}","milestones_url":"https://api.github.com/repos/tburch/dropwizard/milestones{/number}","notifications_url":"https://api.github.com/repos/tburch/dropwizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tburch/dropwizard/labels{/name}","releases_url":"https://api.github.com/repos/tburch/dropwizard/releases{/id}","deployments_url":"https://api.github.com/repos/tburch/dropwizard/deployments","created_at":"2013-11-21T17:33:28Z","updated_at":"2014-11-06T18:03:23Z","pushed_at":"2016-08-03T21:36:35Z","git_url":"git://github.com/tburch/dropwizard.git","ssh_url":"git@github.com:tburch/dropwizard.git","clone_url":"https://github.com/tburch/dropwizard.git","svn_url":"https://github.com/tburch/dropwizard","homepage":"http://www.dropwizard.io","size":7605,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dropwizard:master","ref":"master","sha":"e3d6c3743b02397ea62752984cf2e8c6fc751f88","user":{"login":"dropwizard","id":5478557,"avatar_url":"https://avatars.githubusercontent.com/u/5478557?v=3","gravatar_id":"","url":"https://api.github.com/users/dropwizard","html_url":"https://github.com/dropwizard","followers_url":"https://api.github.com/users/dropwizard/followers","following_url":"https://api.github.com/users/dropwizard/following{/other_user}","gists_url":"https://api.github.com/users/dropwizard/gists{/gist_id}","starred_url":"https://api.github.com/users/dropwizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropwizard/subscriptions","organizations_url":"https://api.github.com/users/dropwizard/orgs","repos_url":"https://api.github.com/users/dropwizard/repos","events_url":"https://api.github.com/users/dropwizard/events{/privacy}","received_events_url":"https://api.github.com/users/dropwizard/received_events","type":"Organization","site_admin":false},"repo":{"id":1272129,"name":"dropwizard","full_name":"dropwizard/dropwizard","owner":{"login":"dropwizard","id":5478557,"avatar_url":"https://avatars.githubusercontent.com/u/5478557?v=3","gravatar_id":"","url":"https://api.github.com/users/dropwizard","html_url":"https://github.com/dropwizard","followers_url":"https://api.github.com/users/dropwizard/followers","following_url":"https://api.github.com/users/dropwizard/following{/other_user}","gists_url":"https://api.github.com/users/dropwizard/gists{/gist_id}","starred_url":"https://api.github.com/users/dropwizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropwizard/subscriptions","organizations_url":"https://api.github.com/users/dropwizard/orgs","repos_url":"https://api.github.com/users/dropwizard/repos","events_url":"https://api.github.com/users/dropwizard/events{/privacy}","received_events_url":"https://api.github.com/users/dropwizard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dropwizard/dropwizard","description":"A damn simple library for building production-ready RESTful web services.","fork":false,"url":"https://api.github.com/repos/dropwizard/dropwizard","forks_url":"https://api.github.com/repos/dropwizard/dropwizard/forks","keys_url":"https://api.github.com/repos/dropwizard/dropwizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dropwizard/dropwizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dropwizard/dropwizard/teams","hooks_url":"https://api.github.com/repos/dropwizard/dropwizard/hooks","issue_events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/events{/number}","events_url":"https://api.github.com/repos/dropwizard/dropwizard/events","assignees_url":"https://api.github.com/repos/dropwizard/dropwizard/assignees{/user}","branches_url":"https://api.github.com/repos/dropwizard/dropwizard/branches{/branch}","tags_url":"https://api.github.com/repos/dropwizard/dropwizard/tags","blobs_url":"https://api.github.com/repos/dropwizard/dropwizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dropwizard/dropwizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dropwizard/dropwizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/dropwizard/dropwizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dropwizard/dropwizard/statuses/{sha}","languages_url":"https://api.github.com/repos/dropwizard/dropwizard/languages","stargazers_url":"https://api.github.com/repos/dropwizard/dropwizard/stargazers","contributors_url":"https://api.github.com/repos/dropwizard/dropwizard/contributors","subscribers_url":"https://api.github.com/repos/dropwizard/dropwizard/subscribers","subscription_url":"https://api.github.com/repos/dropwizard/dropwizard/subscription","commits_url":"https://api.github.com/repos/dropwizard/dropwizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/dropwizard/dropwizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/dropwizard/dropwizard/contents/{+path}","compare_url":"https://api.github.com/repos/dropwizard/dropwizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dropwizard/dropwizard/merges","archive_url":"https://api.github.com/repos/dropwizard/dropwizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dropwizard/dropwizard/downloads","issues_url":"https://api.github.com/repos/dropwizard/dropwizard/issues{/number}","pulls_url":"https://api.github.com/repos/dropwizard/dropwizard/pulls{/number}","milestones_url":"https://api.github.com/repos/dropwizard/dropwizard/milestones{/number}","notifications_url":"https://api.github.com/repos/dropwizard/dropwizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/labels{/name}","releases_url":"https://api.github.com/repos/dropwizard/dropwizard/releases{/id}","deployments_url":"https://api.github.com/repos/dropwizard/dropwizard/deployments","created_at":"2011-01-19T19:52:29Z","updated_at":"2016-08-03T11:50:59Z","pushed_at":"2016-08-03T21:36:36Z","git_url":"git://github.com/dropwizard/dropwizard.git","ssh_url":"git@github.com:dropwizard/dropwizard.git","clone_url":"https://github.com/dropwizard/dropwizard.git","svn_url":"https://github.com/dropwizard/dropwizard","homepage":"http://www.dropwizard.io","size":39372,"stargazers_count":4798,"watchers_count":4798,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2094,"mirror_url":null,"open_issues_count":68,"forks":2094,"open_issues":68,"watchers":4798,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dropwizard/dropwizard/pulls/1666"},"html":{"href":"https://github.com/dropwizard/dropwizard/pull/1666"},"issue":{"href":"https://api.github.com/repos/dropwizard/dropwizard/issues/1666"},"comments":{"href":"https://api.github.com/repos/dropwizard/dropwizard/issues/1666/comments"},"review_comments":{"href":"https://api.github.com/repos/dropwizard/dropwizard/pulls/1666/comments"},"review_comment":{"href":"https://api.github.com/repos/dropwizard/dropwizard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dropwizard/dropwizard/pulls/1666/commits"},"statuses":{"href":"https://api.github.com/repos/dropwizard/dropwizard/statuses/b804e41d9dbcd0cce0245f87611546b041368629"}}}}
{"actor":{"display_login":"evnm"}}