{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/comments/46289359","id":46289359,"diff_hunk":"@@ -0,0 +1,32 @@\n+package org.jenkinsci.test.acceptance.junit;\n+\n+import org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl;\n+\n+import java.io.IOException;\n+import java.net.ServerSocket;\n+\n+/**\n+ * Abstract base class factoring out common code for test classes using the {@link JenkinsAcceptanceTestRule}.\n+ *\n+ * @author Andres Rodriguez\n+ */\n+public abstract class AbstractATHTest extends CapybaraPortingLayerImpl {\n+\n+    protected AbstractATHTest() {\n+        super(null);\n+    }\n+\n+    /**\n+     * @return finds an unused, available port on the test machine\n+     */\n+    public int findAvailablePort() {","path":"src/main/java/org/jenkinsci/test/acceptance/junit/AbstractATHTest.java","position":22,"original_position":22,"commit_id":"cab56888b002f95502217ed0b623f2d94bbc17b2","original_commit_id":"cab56888b002f95502217ed0b623f2d94bbc17b2","user":{"login":"olivergondza","id":206841,"avatar_url":"https://avatars.githubusercontent.com/u/206841?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergondza","html_url":"https://github.com/olivergondza","followers_url":"https://api.github.com/users/olivergondza/followers","following_url":"https://api.github.com/users/olivergondza/following{/other_user}","gists_url":"https://api.github.com/users/olivergondza/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergondza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergondza/subscriptions","organizations_url":"https://api.github.com/users/olivergondza/orgs","repos_url":"https://api.github.com/users/olivergondza/repos","events_url":"https://api.github.com/users/olivergondza/events{/privacy}","received_events_url":"https://api.github.com/users/olivergondza/received_events","type":"User","site_admin":false},"body":"This should be moved to a helper class, instead. We might not need this class at all.","created_at":"2015-12-01T15:12:43Z","updated_at":"2015-12-01T15:12:43Z","html_url":"https://github.com/jenkinsci/acceptance-test-harness/pull/65#discussion_r46289359","pull_request_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/comments/46289359"},"html":{"href":"https://github.com/jenkinsci/acceptance-test-harness/pull/65#discussion_r46289359"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/65","id":52269105,"html_url":"https://github.com/jenkinsci/acceptance-test-harness/pull/65","diff_url":"https://github.com/jenkinsci/acceptance-test-harness/pull/65.diff","patch_url":"https://github.com/jenkinsci/acceptance-test-harness/pull/65.patch","issue_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/65","number":65,"state":"open","locked":false,"title":"[JENKINS-31772] Allow JenkinsAcceptanceTestRule to be used as a ClassRule.","user":{"login":"andresrc","id":500424,"avatar_url":"https://avatars.githubusercontent.com/u/500424?v=3","gravatar_id":"","url":"https://api.github.com/users/andresrc","html_url":"https://github.com/andresrc","followers_url":"https://api.github.com/users/andresrc/followers","following_url":"https://api.github.com/users/andresrc/following{/other_user}","gists_url":"https://api.github.com/users/andresrc/gists{/gist_id}","starred_url":"https://api.github.com/users/andresrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresrc/subscriptions","organizations_url":"https://api.github.com/users/andresrc/orgs","repos_url":"https://api.github.com/users/andresrc/repos","events_url":"https://api.github.com/users/andresrc/events{/privacy}","received_events_url":"https://api.github.com/users/andresrc/received_events","type":"User","site_admin":false},"body":"[[JENKINS-31772]](https://issues.jenkins-ci.org/browse/JENKINS-31772)\r\n\r\nAdd support to using JenkinsAcceptanceTestRule as a ClassRule. PR scope:\r\n* Change JenkinsAcceptanceTestRule to be a TestRule instead of MethodRule.\r\n* Add support to use the rule as a ClassRule.\r\n* Adapt the FolderPluginTest to use the ClassRule.\r\n\r\n@reviewbybees \r\n\r\n","created_at":"2015-12-01T15:09:02Z","updated_at":"2015-12-01T15:12:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"132008bb4ac92b5ade4f01e2890906c520e408ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/65/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/65/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/65/comments","statuses_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/statuses/cab56888b002f95502217ed0b623f2d94bbc17b2","head":{"label":"andresrc:JENKINS-31772","ref":"JENKINS-31772","sha":"cab56888b002f95502217ed0b623f2d94bbc17b2","user":{"login":"andresrc","id":500424,"avatar_url":"https://avatars.githubusercontent.com/u/500424?v=3","gravatar_id":"","url":"https://api.github.com/users/andresrc","html_url":"https://github.com/andresrc","followers_url":"https://api.github.com/users/andresrc/followers","following_url":"https://api.github.com/users/andresrc/following{/other_user}","gists_url":"https://api.github.com/users/andresrc/gists{/gist_id}","starred_url":"https://api.github.com/users/andresrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresrc/subscriptions","organizations_url":"https://api.github.com/users/andresrc/orgs","repos_url":"https://api.github.com/users/andresrc/repos","events_url":"https://api.github.com/users/andresrc/events{/privacy}","received_events_url":"https://api.github.com/users/andresrc/received_events","type":"User","site_admin":false},"repo":{"id":46431572,"name":"acceptance-test-harness","full_name":"andresrc/acceptance-test-harness","owner":{"login":"andresrc","id":500424,"avatar_url":"https://avatars.githubusercontent.com/u/500424?v=3","gravatar_id":"","url":"https://api.github.com/users/andresrc","html_url":"https://github.com/andresrc","followers_url":"https://api.github.com/users/andresrc/followers","following_url":"https://api.github.com/users/andresrc/following{/other_user}","gists_url":"https://api.github.com/users/andresrc/gists{/gist_id}","starred_url":"https://api.github.com/users/andresrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresrc/subscriptions","organizations_url":"https://api.github.com/users/andresrc/orgs","repos_url":"https://api.github.com/users/andresrc/repos","events_url":"https://api.github.com/users/andresrc/events{/privacy}","received_events_url":"https://api.github.com/users/andresrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andresrc/acceptance-test-harness","description":"Attempted port from selenium-tests to Java","fork":true,"url":"https://api.github.com/repos/andresrc/acceptance-test-harness","forks_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/forks","keys_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/teams","hooks_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/hooks","issue_events_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/issues/events{/number}","events_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/events","assignees_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/assignees{/user}","branches_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/branches{/branch}","tags_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/tags","blobs_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/git/refs{/sha}","trees_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/statuses/{sha}","languages_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/languages","stargazers_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/stargazers","contributors_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/contributors","subscribers_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/subscribers","subscription_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/subscription","commits_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/commits{/sha}","git_commits_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/git/commits{/sha}","comments_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/comments{/number}","issue_comment_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/issues/comments{/number}","contents_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/contents/{+path}","compare_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/merges","archive_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/downloads","issues_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/issues{/number}","pulls_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/pulls{/number}","milestones_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/milestones{/number}","notifications_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/labels{/name}","releases_url":"https://api.github.com/repos/andresrc/acceptance-test-harness/releases{/id}","created_at":"2015-11-18T16:25:36Z","updated_at":"2015-11-18T16:25:39Z","pushed_at":"2015-12-01T15:04:28Z","git_url":"git://github.com/andresrc/acceptance-test-harness.git","ssh_url":"git@github.com:andresrc/acceptance-test-harness.git","clone_url":"https://github.com/andresrc/acceptance-test-harness.git","svn_url":"https://github.com/andresrc/acceptance-test-harness","homepage":null,"size":7855,"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":"jenkinsci:master","ref":"master","sha":"6632bb07eb03804b72b2c40538ffd709e02540dd","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":17294237,"name":"acceptance-test-harness","full_name":"jenkinsci/acceptance-test-harness","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/acceptance-test-harness","description":"Attempted port from selenium-tests to Java","fork":false,"url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness","forks_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/forks","keys_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/teams","hooks_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/events","assignees_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/tags","blobs_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/subscription","commits_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/merges","archive_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/downloads","issues_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/releases{/id}","created_at":"2014-02-28T17:39:55Z","updated_at":"2015-11-11T14:55:15Z","pushed_at":"2015-12-01T15:09:02Z","git_url":"git://github.com/jenkinsci/acceptance-test-harness.git","ssh_url":"git@github.com:jenkinsci/acceptance-test-harness.git","clone_url":"https://github.com/jenkinsci/acceptance-test-harness.git","svn_url":"https://github.com/jenkinsci/acceptance-test-harness","homepage":null,"size":7893,"stargazers_count":33,"watchers_count":33,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":6,"forks":50,"open_issues":6,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/65"},"html":{"href":"https://github.com/jenkinsci/acceptance-test-harness/pull/65"},"issue":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/65"},"comments":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/statuses/cab56888b002f95502217ed0b623f2d94bbc17b2"}}}}