Permalink
Browse files

[SHRINKWRAP-426] Fix SHRINKWRAP-377 test

  • Loading branch information...
ALRubinger committed Oct 13, 2012
1 parent de702a1 commit 5decc5ce99bf29b69da3ed1cb01833185e31df6d
@@ -148,15 +148,17 @@ public void exportEmptyArchiveAsZip() throws Exception {
*/
@Test
public void exportShouldFailIfTargetExist() throws IOException {
- File target = new File(createTempDirectory("exportShouldFailIfTargetExist.jar").getAbsolutePath());
+ File target = new File(createTempDirectory("exportShouldFailIfTargetExist").getAbsolutePath()
+ + "exportShouldFailIfTargetExist.jar");
if (target.exists()) {
Assert.assertTrue(target.delete());
}
Assert.assertFalse(target.exists());
createArchiveWithAssets().as(ZipExporter.class).exportTo(target);
Assert.assertTrue(target.exists());
try {
- createArchiveWithAssets().as(ZipExporter.class).exportTo(target); // this line should throw a FileExistsException
+ createArchiveWithAssets().as(ZipExporter.class).exportTo(target); // this line should throw a
+ // FileExistsException
Assert.fail("Expected a FileExistsException when exporting to an existing path");
} catch (Exception e) {
Assert.assertEquals(org.jboss.shrinkwrap.api.exporter.FileExistsException.class, e.getClass());

0 comments on commit 5decc5c

Please sign in to comment.