Skip to content

Instantly share code, notes, and snippets.

@iainporter
Last active August 29, 2020 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iainporter/43b743871ecde79a3e34a01198d456c3 to your computer and use it in GitHub Desktop.
Save iainporter/43b743871ecde79a3e34a01198d456c3 to your computer and use it in GitHub Desktop.
test that invalid file is ignored
@Test
public void pollIgnoresInvalidFile() throws Exception {
copy(TestUtils.locateClasspathResource(TestUtils.FILE_FIXTURE_PATH), new File(inboundReadDirectory, TestUtils.FILE_FIXTURE_NAME + ".tmp" ));
Thread.sleep(2000);
assertThatDirectoryIsEmpty(inboundProcessedDirectory);
assertThatDirectoryIsEmpty(inboundFailedDirectory);
assertThatDirectoryIsEmpty(inboundOutDirectory);
assertThatDirectoryHasFiles(inboundReadDirectory, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment