{"action":"created","comment":{"url":"https://api.github.com/repos/codice/ddf/pulls/comments/37026905","id":37026905,"diff_hunk":"@@ -0,0 +1,107 @@\n+/**\n+ * Copyright (c) Codice Foundation\n+ * <p/>\n+ * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser\n+ * General Public License as published by the Free Software Foundation, either version 3 of the\n+ * License, or any later version.\n+ * <p/>\n+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\n+ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n+ * Lesser General Public License for more details. A copy of the GNU Lesser General Public License\n+ * is distributed along with this program and can be found at\n+ * <http://www.gnu.org/licenses/lgpl.html>.\n+ */\n+package org.codice.ddf.ui.admin.api.module;\n+\n+import static org.hamcrest.Matchers.is;\n+import static org.junit.Assert.assertThat;\n+import static org.mockito.Mockito.doReturn;\n+\n+import java.net.URI;\n+import java.net.URISyntaxException;\n+import java.util.ArrayList;\n+import java.util.Collections;\n+import java.util.List;\n+\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.mockito.Mock;\n+import org.mockito.Mockito;\n+\n+public class AdminModuleExtTest {\n+\n+    @Mock","path":"platform/admin/core/admin-core-api/src/test/java/org/codice/ddf/ui/admin/api/module/AdminModuleExtTest.java","position":33,"original_position":33,"commit_id":"29a80e348f61a1e35894dc17880844ed0597aa6c","original_commit_id":"29a80e348f61a1e35894dc17880844ed0597aa6c","user":{"login":"lessarderic","id":11377558,"avatar_url":"https://avatars.githubusercontent.com/u/11377558?v=3","gravatar_id":"","url":"https://api.github.com/users/lessarderic","html_url":"https://github.com/lessarderic","followers_url":"https://api.github.com/users/lessarderic/followers","following_url":"https://api.github.com/users/lessarderic/following{/other_user}","gists_url":"https://api.github.com/users/lessarderic/gists{/gist_id}","starred_url":"https://api.github.com/users/lessarderic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lessarderic/subscriptions","organizations_url":"https://api.github.com/users/lessarderic/orgs","repos_url":"https://api.github.com/users/lessarderic/repos","events_url":"https://api.github.com/users/lessarderic/events{/privacy}","received_events_url":"https://api.github.com/users/lessarderic/received_events","type":"User","site_admin":false},"body":"We should use either the `@Mock` and `@RunWith(MockitoJUnit4Runner.class)` annotations, or `Mockito.mock()` but not both.","created_at":"2015-08-13T21:19:45Z","updated_at":"2015-08-13T21:19:45Z","html_url":"https://github.com/codice/ddf/pull/97#discussion_r37026905","pull_request_url":"https://api.github.com/repos/codice/ddf/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments/37026905"},"html":{"href":"https://github.com/codice/ddf/pull/97#discussion_r37026905"},"pull_request":{"href":"https://api.github.com/repos/codice/ddf/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/codice/ddf/pulls/97","id":41806493,"html_url":"https://github.com/codice/ddf/pull/97","diff_url":"https://github.com/codice/ddf/pull/97.diff","patch_url":"https://github.com/codice/ddf/pull/97.patch","issue_url":"https://api.github.com/repos/codice/ddf/issues/97","number":97,"state":"open","locked":false,"title":"DDF-1323: added admin ui check to make sure only relative paths are used.","user":{"login":"djblue","id":1986211,"avatar_url":"https://avatars.githubusercontent.com/u/1986211?v=3","gravatar_id":"","url":"https://api.github.com/users/djblue","html_url":"https://github.com/djblue","followers_url":"https://api.github.com/users/djblue/followers","following_url":"https://api.github.com/users/djblue/following{/other_user}","gists_url":"https://api.github.com/users/djblue/gists{/gist_id}","starred_url":"https://api.github.com/users/djblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djblue/subscriptions","organizations_url":"https://api.github.com/users/djblue/orgs","repos_url":"https://api.github.com/users/djblue/repos","events_url":"https://api.github.com/users/djblue/events{/privacy}","received_events_url":"https://api.github.com/users/djblue/received_events","type":"User","site_admin":false},"body":"\r\n<!-- Reviewable:start -->\r\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/codice/ddf/97)\r\n<!-- Reviewable:end -->\r\n\r\n@andrewkfiedler \r\n@pklinef \r\n@ricklarsen will hero.\r\n","created_at":"2015-08-06T16:18:46Z","updated_at":"2015-08-13T21:19:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e35cc26f6ad3653a21c6a2af94e903c398a40fda","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codice/ddf/pulls/97/commits","review_comments_url":"https://api.github.com/repos/codice/ddf/pulls/97/comments","review_comment_url":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/ddf/issues/97/comments","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/29a80e348f61a1e35894dc17880844ed0597aa6c","head":{"label":"djblue:DDF-1323","ref":"DDF-1323","sha":"29a80e348f61a1e35894dc17880844ed0597aa6c","user":{"login":"djblue","id":1986211,"avatar_url":"https://avatars.githubusercontent.com/u/1986211?v=3","gravatar_id":"","url":"https://api.github.com/users/djblue","html_url":"https://github.com/djblue","followers_url":"https://api.github.com/users/djblue/followers","following_url":"https://api.github.com/users/djblue/following{/other_user}","gists_url":"https://api.github.com/users/djblue/gists{/gist_id}","starred_url":"https://api.github.com/users/djblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djblue/subscriptions","organizations_url":"https://api.github.com/users/djblue/orgs","repos_url":"https://api.github.com/users/djblue/repos","events_url":"https://api.github.com/users/djblue/events{/privacy}","received_events_url":"https://api.github.com/users/djblue/received_events","type":"User","site_admin":false},"repo":{"id":37468193,"name":"ddf","full_name":"djblue/ddf","owner":{"login":"djblue","id":1986211,"avatar_url":"https://avatars.githubusercontent.com/u/1986211?v=3","gravatar_id":"","url":"https://api.github.com/users/djblue","html_url":"https://github.com/djblue","followers_url":"https://api.github.com/users/djblue/followers","following_url":"https://api.github.com/users/djblue/following{/other_user}","gists_url":"https://api.github.com/users/djblue/gists{/gist_id}","starred_url":"https://api.github.com/users/djblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djblue/subscriptions","organizations_url":"https://api.github.com/users/djblue/orgs","repos_url":"https://api.github.com/users/djblue/repos","events_url":"https://api.github.com/users/djblue/events{/privacy}","received_events_url":"https://api.github.com/users/djblue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djblue/ddf","description":"The Distributed Data Framework - Distribution, SDK, and Test","fork":true,"url":"https://api.github.com/repos/djblue/ddf","forks_url":"https://api.github.com/repos/djblue/ddf/forks","keys_url":"https://api.github.com/repos/djblue/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djblue/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djblue/ddf/teams","hooks_url":"https://api.github.com/repos/djblue/ddf/hooks","issue_events_url":"https://api.github.com/repos/djblue/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/djblue/ddf/events","assignees_url":"https://api.github.com/repos/djblue/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/djblue/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/djblue/ddf/tags","blobs_url":"https://api.github.com/repos/djblue/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djblue/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djblue/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/djblue/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djblue/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/djblue/ddf/languages","stargazers_url":"https://api.github.com/repos/djblue/ddf/stargazers","contributors_url":"https://api.github.com/repos/djblue/ddf/contributors","subscribers_url":"https://api.github.com/repos/djblue/ddf/subscribers","subscription_url":"https://api.github.com/repos/djblue/ddf/subscription","commits_url":"https://api.github.com/repos/djblue/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/djblue/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/djblue/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/djblue/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/djblue/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/djblue/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djblue/ddf/merges","archive_url":"https://api.github.com/repos/djblue/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djblue/ddf/downloads","issues_url":"https://api.github.com/repos/djblue/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/djblue/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/djblue/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/djblue/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djblue/ddf/labels{/name}","releases_url":"https://api.github.com/repos/djblue/ddf/releases{/id}","created_at":"2015-06-15T13:54:03Z","updated_at":"2015-06-15T13:54:04Z","pushed_at":"2015-08-07T14:51:48Z","git_url":"git://github.com/djblue/ddf.git","ssh_url":"git@github.com:djblue/ddf.git","clone_url":"https://github.com/djblue/ddf.git","svn_url":"https://github.com/djblue/ddf","homepage":"","size":118834,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codice:master","ref":"master","sha":"dea2897e1b1375f231e1228dd64ee524174e8c30","user":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"repo":{"id":15173563,"name":"ddf","full_name":"codice/ddf","owner":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codice/ddf","description":"The Distributed Data Framework - Distribution, SDK, and Test","fork":false,"url":"https://api.github.com/repos/codice/ddf","forks_url":"https://api.github.com/repos/codice/ddf/forks","keys_url":"https://api.github.com/repos/codice/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codice/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codice/ddf/teams","hooks_url":"https://api.github.com/repos/codice/ddf/hooks","issue_events_url":"https://api.github.com/repos/codice/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/codice/ddf/events","assignees_url":"https://api.github.com/repos/codice/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/codice/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/codice/ddf/tags","blobs_url":"https://api.github.com/repos/codice/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codice/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codice/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/codice/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/codice/ddf/languages","stargazers_url":"https://api.github.com/repos/codice/ddf/stargazers","contributors_url":"https://api.github.com/repos/codice/ddf/contributors","subscribers_url":"https://api.github.com/repos/codice/ddf/subscribers","subscription_url":"https://api.github.com/repos/codice/ddf/subscription","commits_url":"https://api.github.com/repos/codice/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/codice/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/codice/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/codice/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/codice/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/codice/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codice/ddf/merges","archive_url":"https://api.github.com/repos/codice/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codice/ddf/downloads","issues_url":"https://api.github.com/repos/codice/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/codice/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/codice/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/codice/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codice/ddf/labels{/name}","releases_url":"https://api.github.com/repos/codice/ddf/releases{/id}","created_at":"2013-12-13T20:38:28Z","updated_at":"2015-08-09T12:08:48Z","pushed_at":"2015-08-13T20:43:15Z","git_url":"git://github.com/codice/ddf.git","ssh_url":"git@github.com:codice/ddf.git","clone_url":"https://github.com/codice/ddf.git","svn_url":"https://github.com/codice/ddf","homepage":"","size":133472,"stargazers_count":19,"watchers_count":19,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":52,"mirror_url":null,"open_issues_count":12,"forks":52,"open_issues":12,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/97"},"html":{"href":"https://github.com/codice/ddf/pull/97"},"issue":{"href":"https://api.github.com/repos/codice/ddf/issues/97"},"comments":{"href":"https://api.github.com/repos/codice/ddf/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/ddf/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/ddf/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/codice/ddf/statuses/29a80e348f61a1e35894dc17880844ed0597aa6c"}}}}