{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/comments/69296358","id":69296358,"diff_hunk":"@@ -330,4 +338,40 @@ public String getName() {\n         wc.waitForBackgroundJavaScript(10000L);\n         assertThat(page.asText(), not(containsString(EXPECTED)));\n     }\n+\n+    @Issue(\"JENKINS-26535\")\n+    @Test\n+    public void testDescribableRoundTrip() throws Exception {\n+        DescribableModel<JUnitResultArchiver> model = new DescribableModel<JUnitResultArchiver>(JUnitResultArchiver.class);\n+        Map<String,Object> args = new TreeMap<String,Object>();\n+\n+        args.put(\"testResults\", \"**/TEST-*.xml\");\n+        JUnitResultArchiver j = model.instantiate(args);\n+        assertEquals(\"**/TEST-*.xml\", j.getTestResults());\n+        assertFalse(j.isAllowEmptyResults());\n+        assertFalse(j.isKeepLongStdio());\n+        assertEquals(1.0, j.getHealthScaleFactor(), 0);\n+        assertTrue(j.getTestDataPublishers().isEmpty());\n+        assertEquals(args, model.uninstantiate(model.instantiate(args)));\n+\n+        // Test roundtripping of an instantiated list of test data publishers.\n+        args.put(\"testDataPublishers\", Collections.<TestDataPublisher>singletonList(new MockTestDataPublisher(\"test\")));\n+        Map<String,Object> explicit = model.uninstantiate(model.instantiate(args));\n+        JUnitResultArchiver j2 = model.instantiate(explicit);\n+        assertFalse(j2.getTestDataPublishers().isEmpty());\n+\n+        assertEquals(explicit, model.uninstantiate(model.instantiate(explicit)));\n+\n+        // Test roundtripping from a Pipeline-style describing of the publisher.\n+        Map<String,String> describedPublisher = new HashMap<String, String>();","path":"src/test/java/hudson/tasks/junit/JUnitResultArchiverTest.java","position":71,"original_position":71,"commit_id":"d0b44ed133616789fe4a186ae0087a1dd7d22cb5","original_commit_id":"d0b44ed133616789fe4a186ae0087a1dd7d22cb5","user":{"login":"jglick","id":154109,"avatar_url":"https://avatars.githubusercontent.com/u/154109?v=3","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"body":"`Object` would be the usual value type, not `String`.","created_at":"2016-07-01T13:06:24Z","updated_at":"2016-07-01T13:06:24Z","html_url":"https://github.com/jenkinsci/junit-plugin/pull/48#discussion_r69296358","pull_request_url":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/comments/69296358"},"html":{"href":"https://github.com/jenkinsci/junit-plugin/pull/48#discussion_r69296358"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/48","id":73622452,"html_url":"https://github.com/jenkinsci/junit-plugin/pull/48","diff_url":"https://github.com/jenkinsci/junit-plugin/pull/48.diff","patch_url":"https://github.com/jenkinsci/junit-plugin/pull/48.patch","issue_url":"https://api.github.com/repos/jenkinsci/junit-plugin/issues/48","number":48,"state":"open","locked":false,"title":"[JENKINS-26535] Workaround through using raw types for testDataPublishers","user":{"login":"abayer","id":120218,"avatar_url":"https://avatars.githubusercontent.com/u/120218?v=3","gravatar_id":"","url":"https://api.github.com/users/abayer","html_url":"https://github.com/abayer","followers_url":"https://api.github.com/users/abayer/followers","following_url":"https://api.github.com/users/abayer/following{/other_user}","gists_url":"https://api.github.com/users/abayer/gists{/gist_id}","starred_url":"https://api.github.com/users/abayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abayer/subscriptions","organizations_url":"https://api.github.com/users/abayer/orgs","repos_url":"https://api.github.com/users/abayer/repos","events_url":"https://api.github.com/users/abayer/events{/privacy}","received_events_url":"https://api.github.com/users/abayer/received_events","type":"User","site_admin":false},"body":"https://issues.jenkins-ci.org/browse/JENKINS-26535\r\n\r\nRequired for https://issues.jenkins-ci.org/browse/JENKINS-28784\r\n\r\ncc @reviewbybees esp @jglick ","created_at":"2016-06-13T18:37:25Z","updated_at":"2016-07-01T13:06:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e0dab8aff3eef6bec3a06e69b8dd709282470be","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/48/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/48/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/junit-plugin/issues/48/comments","statuses_url":"https://api.github.com/repos/jenkinsci/junit-plugin/statuses/d0b44ed133616789fe4a186ae0087a1dd7d22cb5","head":{"label":"abayer:jenkins-26535","ref":"jenkins-26535","sha":"d0b44ed133616789fe4a186ae0087a1dd7d22cb5","user":{"login":"abayer","id":120218,"avatar_url":"https://avatars.githubusercontent.com/u/120218?v=3","gravatar_id":"","url":"https://api.github.com/users/abayer","html_url":"https://github.com/abayer","followers_url":"https://api.github.com/users/abayer/followers","following_url":"https://api.github.com/users/abayer/following{/other_user}","gists_url":"https://api.github.com/users/abayer/gists{/gist_id}","starred_url":"https://api.github.com/users/abayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abayer/subscriptions","organizations_url":"https://api.github.com/users/abayer/orgs","repos_url":"https://api.github.com/users/abayer/repos","events_url":"https://api.github.com/users/abayer/events{/privacy}","received_events_url":"https://api.github.com/users/abayer/received_events","type":"User","site_admin":false},"repo":{"id":60127582,"name":"junit-plugin","full_name":"abayer/junit-plugin","owner":{"login":"abayer","id":120218,"avatar_url":"https://avatars.githubusercontent.com/u/120218?v=3","gravatar_id":"","url":"https://api.github.com/users/abayer","html_url":"https://github.com/abayer","followers_url":"https://api.github.com/users/abayer/followers","following_url":"https://api.github.com/users/abayer/following{/other_user}","gists_url":"https://api.github.com/users/abayer/gists{/gist_id}","starred_url":"https://api.github.com/users/abayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abayer/subscriptions","organizations_url":"https://api.github.com/users/abayer/orgs","repos_url":"https://api.github.com/users/abayer/repos","events_url":"https://api.github.com/users/abayer/events{/privacy}","received_events_url":"https://api.github.com/users/abayer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abayer/junit-plugin","description":"","fork":true,"url":"https://api.github.com/repos/abayer/junit-plugin","forks_url":"https://api.github.com/repos/abayer/junit-plugin/forks","keys_url":"https://api.github.com/repos/abayer/junit-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abayer/junit-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abayer/junit-plugin/teams","hooks_url":"https://api.github.com/repos/abayer/junit-plugin/hooks","issue_events_url":"https://api.github.com/repos/abayer/junit-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/abayer/junit-plugin/events","assignees_url":"https://api.github.com/repos/abayer/junit-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/abayer/junit-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/abayer/junit-plugin/tags","blobs_url":"https://api.github.com/repos/abayer/junit-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abayer/junit-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abayer/junit-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/abayer/junit-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abayer/junit-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/abayer/junit-plugin/languages","stargazers_url":"https://api.github.com/repos/abayer/junit-plugin/stargazers","contributors_url":"https://api.github.com/repos/abayer/junit-plugin/contributors","subscribers_url":"https://api.github.com/repos/abayer/junit-plugin/subscribers","subscription_url":"https://api.github.com/repos/abayer/junit-plugin/subscription","commits_url":"https://api.github.com/repos/abayer/junit-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/abayer/junit-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/abayer/junit-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/abayer/junit-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/abayer/junit-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/abayer/junit-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abayer/junit-plugin/merges","archive_url":"https://api.github.com/repos/abayer/junit-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abayer/junit-plugin/downloads","issues_url":"https://api.github.com/repos/abayer/junit-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/abayer/junit-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/abayer/junit-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/abayer/junit-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abayer/junit-plugin/labels{/name}","releases_url":"https://api.github.com/repos/abayer/junit-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/abayer/junit-plugin/deployments","created_at":"2016-05-31T22:20:01Z","updated_at":"2016-05-31T22:20:04Z","pushed_at":"2016-06-30T15:19:29Z","git_url":"git://github.com/abayer/junit-plugin.git","ssh_url":"git@github.com:abayer/junit-plugin.git","clone_url":"https://github.com/abayer/junit-plugin.git","svn_url":"https://github.com/abayer/junit-plugin","homepage":"","size":1375,"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":"4c8a7377790a5d131747012cff3d2b8e32fdce59","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":22840826,"name":"junit-plugin","full_name":"jenkinsci/junit-plugin","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/junit-plugin","description":"","fork":false,"url":"https://api.github.com/repos/jenkinsci/junit-plugin","forks_url":"https://api.github.com/repos/jenkinsci/junit-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/junit-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/junit-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/junit-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/junit-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/junit-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/junit-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/junit-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/junit-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/junit-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/junit-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/junit-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/junit-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/junit-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/junit-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/junit-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/junit-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/junit-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/junit-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/junit-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/junit-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/junit-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/junit-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/junit-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/junit-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/junit-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/junit-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/junit-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/junit-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/junit-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/junit-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/junit-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/junit-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/junit-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/junit-plugin/deployments","created_at":"2014-08-11T13:55:17Z","updated_at":"2016-06-16T06:32:01Z","pushed_at":"2016-06-30T17:59:02Z","git_url":"git://github.com/jenkinsci/junit-plugin.git","ssh_url":"git@github.com:jenkinsci/junit-plugin.git","clone_url":"https://github.com/jenkinsci/junit-plugin.git","svn_url":"https://github.com/jenkinsci/junit-plugin","homepage":"","size":1776,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":71,"mirror_url":null,"open_issues_count":13,"forks":71,"open_issues":13,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/48"},"html":{"href":"https://github.com/jenkinsci/junit-plugin/pull/48"},"issue":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/issues/48"},"comments":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/junit-plugin/statuses/d0b44ed133616789fe4a186ae0087a1dd7d22cb5"}}}}
{"actor":{"display_login":"jglick"}}