{"action":"created","comment":{"url":"https://api.github.com/repos/codice/ddf/pulls/comments/46461438","id":46461438,"diff_hunk":"@@ -511,6 +521,63 @@ void moveFile(Path source, Path destination) throws IOException {\n         verify(configFile1).createConfig();\n     }\n \n+    @Test\n+    public void testGetImportStatusTwoFilesInFailedDirectory() throws Exception {\n+        Path[] expected = new Path[2];\n+        expected[0] = configPath1;\n+        expected[1] = configPath2;\n+\n+        setUpTwoConfigFileIterator(failedDirectoryStream);\n+        ConfigurationFileDirectory configurationFileDirectory = new ConfigurationFileDirectory(\n+                configurationDirectoryStream, processedDirectoryPath, failedDirectoryPath,\n+                configurationFileFactory, configurationFilePoller) {\n+            @Override\n+            DirectoryStream<Path> getFailedDirectoryStream() throws IOException {\n+                return failedDirectoryStream;\n+            }\n+        };\n+\n+        Collection<Path> failedImports = configurationFileDirectory.getImportStatus();\n+\n+        assertThat(\"The failed directory does not contain the correct number of files\",\n+                failedImports.size(), is(2));\n+        assertThat(\"The failed directory does not contain the corrrect files\", failedImports,\n+                hasItems(expected));\n+    }\n+\n+    @Test\n+    public void testGetImportStatusNoFilesInFailedDirectory() throws Exception {\n+        when(failedDirectoryStreamIterator.hasNext()).thenReturn(false);\n+        when(failedDirectoryStream.iterator()).thenReturn(failedDirectoryStreamIterator);\n+        ConfigurationFileDirectory configurationFileDirectory = new ConfigurationFileDirectory(\n+                configurationDirectoryStream, processedDirectoryPath, failedDirectoryPath,\n+                configurationFileFactory, configurationFilePoller) {\n+            @Override\n+            DirectoryStream<Path> getFailedDirectoryStream() throws IOException {\n+                return failedDirectoryStream;\n+            }\n+        };\n+\n+        Collection<Path> failedImports = configurationFileDirectory.getImportStatus();\n+\n+        assertThat(\"The failed directory does not contain the correct number of files\",\n+                failedImports.size(), is(0));","path":"platform/platform-configuration-listener/src/test/java/org/codice/ddf/configuration/store/ConfigurationFileDirectoryTest.java","position":232,"original_position":232,"commit_id":"0fc03ba6062d06978a49b35cca0c5d3e9c085b64","original_commit_id":"0fc03ba6062d06978a49b35cca0c5d3e9c085b64","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":"Should be able to do `assertThat(failedImports, is(empty()))` here.","created_at":"2015-12-02T19:23:38Z","updated_at":"2015-12-02T19:23:38Z","html_url":"https://github.com/codice/ddf/pull/362#discussion_r46461438","pull_request_url":"https://api.github.com/repos/codice/ddf/pulls/362","_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments/46461438"},"html":{"href":"https://github.com/codice/ddf/pull/362#discussion_r46461438"},"pull_request":{"href":"https://api.github.com/repos/codice/ddf/pulls/362"}}},"pull_request":{"url":"https://api.github.com/repos/codice/ddf/pulls/362","id":52189696,"html_url":"https://github.com/codice/ddf/pull/362","diff_url":"https://github.com/codice/ddf/pull/362.diff","patch_url":"https://github.com/codice/ddf/pull/362.patch","issue_url":"https://api.github.com/repos/codice/ddf/issues/362","number":362,"state":"open","locked":false,"title":"DDF-1680: As an administrator, I want to be able to get a list of all…","user":{"login":"figliold","id":4838043,"avatar_url":"https://avatars.githubusercontent.com/u/4838043?v=3","gravatar_id":"","url":"https://api.github.com/users/figliold","html_url":"https://github.com/figliold","followers_url":"https://api.github.com/users/figliold/followers","following_url":"https://api.github.com/users/figliold/following{/other_user}","gists_url":"https://api.github.com/users/figliold/gists{/gist_id}","starred_url":"https://api.github.com/users/figliold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figliold/subscriptions","organizations_url":"https://api.github.com/users/figliold/orgs","repos_url":"https://api.github.com/users/figliold/repos","events_url":"https://api.github.com/users/figliold/events{/privacy}","received_events_url":"https://api.github.com/users/figliold/received_events","type":"User","site_admin":false},"body":"… the invalid configurations from the CLI\r\n\r\n@lessarderic @garrettfreibott @andrewkfiedler @oconnormi ","created_at":"2015-11-30T22:37:04Z","updated_at":"2015-12-02T19:23:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"789399d886fb89918bac94d3e8770db514a7079a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codice/ddf/pulls/362/commits","review_comments_url":"https://api.github.com/repos/codice/ddf/pulls/362/comments","review_comment_url":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/ddf/issues/362/comments","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/0fc03ba6062d06978a49b35cca0c5d3e9c085b64","head":{"label":"figliold:DDF-1680","ref":"DDF-1680","sha":"0fc03ba6062d06978a49b35cca0c5d3e9c085b64","user":{"login":"figliold","id":4838043,"avatar_url":"https://avatars.githubusercontent.com/u/4838043?v=3","gravatar_id":"","url":"https://api.github.com/users/figliold","html_url":"https://github.com/figliold","followers_url":"https://api.github.com/users/figliold/followers","following_url":"https://api.github.com/users/figliold/following{/other_user}","gists_url":"https://api.github.com/users/figliold/gists{/gist_id}","starred_url":"https://api.github.com/users/figliold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figliold/subscriptions","organizations_url":"https://api.github.com/users/figliold/orgs","repos_url":"https://api.github.com/users/figliold/repos","events_url":"https://api.github.com/users/figliold/events{/privacy}","received_events_url":"https://api.github.com/users/figliold/received_events","type":"User","site_admin":false},"repo":{"id":34751793,"name":"ddf","full_name":"figliold/ddf","owner":{"login":"figliold","id":4838043,"avatar_url":"https://avatars.githubusercontent.com/u/4838043?v=3","gravatar_id":"","url":"https://api.github.com/users/figliold","html_url":"https://github.com/figliold","followers_url":"https://api.github.com/users/figliold/followers","following_url":"https://api.github.com/users/figliold/following{/other_user}","gists_url":"https://api.github.com/users/figliold/gists{/gist_id}","starred_url":"https://api.github.com/users/figliold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figliold/subscriptions","organizations_url":"https://api.github.com/users/figliold/orgs","repos_url":"https://api.github.com/users/figliold/repos","events_url":"https://api.github.com/users/figliold/events{/privacy}","received_events_url":"https://api.github.com/users/figliold/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/figliold/ddf","description":"The Distributed Data Framework - Distribution, SDK, and Test","fork":true,"url":"https://api.github.com/repos/figliold/ddf","forks_url":"https://api.github.com/repos/figliold/ddf/forks","keys_url":"https://api.github.com/repos/figliold/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/figliold/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/figliold/ddf/teams","hooks_url":"https://api.github.com/repos/figliold/ddf/hooks","issue_events_url":"https://api.github.com/repos/figliold/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/figliold/ddf/events","assignees_url":"https://api.github.com/repos/figliold/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/figliold/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/figliold/ddf/tags","blobs_url":"https://api.github.com/repos/figliold/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/figliold/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/figliold/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/figliold/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/figliold/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/figliold/ddf/languages","stargazers_url":"https://api.github.com/repos/figliold/ddf/stargazers","contributors_url":"https://api.github.com/repos/figliold/ddf/contributors","subscribers_url":"https://api.github.com/repos/figliold/ddf/subscribers","subscription_url":"https://api.github.com/repos/figliold/ddf/subscription","commits_url":"https://api.github.com/repos/figliold/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/figliold/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/figliold/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/figliold/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/figliold/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/figliold/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/figliold/ddf/merges","archive_url":"https://api.github.com/repos/figliold/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/figliold/ddf/downloads","issues_url":"https://api.github.com/repos/figliold/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/figliold/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/figliold/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/figliold/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/figliold/ddf/labels{/name}","releases_url":"https://api.github.com/repos/figliold/ddf/releases{/id}","created_at":"2015-04-28T19:40:41Z","updated_at":"2015-04-28T19:40:42Z","pushed_at":"2015-12-01T23:48:50Z","git_url":"git://github.com/figliold/ddf.git","ssh_url":"git@github.com:figliold/ddf.git","clone_url":"https://github.com/figliold/ddf.git","svn_url":"https://github.com/figliold/ddf","homepage":"","size":123403,"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":"3ba36abc51d8d5766362362ce5a05b9006a4aa2f","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-11-11T00:19:30Z","pushed_at":"2015-12-02T19:16:52Z","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":130399,"stargazers_count":24,"watchers_count":24,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":63,"mirror_url":null,"open_issues_count":12,"forks":63,"open_issues":12,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/362"},"html":{"href":"https://github.com/codice/ddf/pull/362"},"issue":{"href":"https://api.github.com/repos/codice/ddf/issues/362"},"comments":{"href":"https://api.github.com/repos/codice/ddf/issues/362/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/ddf/pulls/362/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/ddf/pulls/362/commits"},"statuses":{"href":"https://api.github.com/repos/codice/ddf/statuses/0fc03ba6062d06978a49b35cca0c5d3e9c085b64"}}}}