Last active
August 29, 2020 10:04
-
-
Save iainporter/43b743871ecde79a3e34a01198d456c3 to your computer and use it in GitHub Desktop.
test that invalid file is ignored
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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