use of nl.nn.adapterframework.stream.UrlMessage in project iaf by ibissource.
the class UnzipPipeTest method testCreateSubDirectoriesKeepFilename.
@Test
public void testCreateSubDirectoriesKeepFilename() throws Exception {
pipe.setKeepOriginalFileName(true);
pipe.setKeepOriginalFilePath(true);
pipe.setDeleteOnExit(false);
configureAndStartPipe();
URL zip = TestFileUtils.getTestFileURL("/Unzip/folder.zip");
doPipe(new UrlMessage(zip));
File toBePresent = new File(folder.getRoot() + "/Folder/innerFolder/innerFile.txt");
assertTrue(toBePresent.isFile());
}
use of nl.nn.adapterframework.stream.UrlMessage in project iaf by ibissource.
the class UnzipPipeTest method testNullDirectoryFakeSessionKey.
@Test
public void testNullDirectoryFakeSessionKey() throws Exception {
exception.expectMessage("directorySessionKey is empty");
pipe.setDirectory(null);
pipe.setDirectorySessionKey("dummy");
configureAndStartPipe();
URL zip = TestFileUtils.getTestFileURL("/Unzip/folder.zip");
doPipe(new UrlMessage(zip));
}
Aggregations