Don't assert on existing directories/files.

This commit is contained in:
Simone Bordet 2014-03-27 16:11:11 +01:00
parent 342c97d8ba
commit f36700092c
1 changed files with 4 additions and 4 deletions

View File

@ -57,10 +57,10 @@ public class HashSessionManagerTest
manager.setDeleteUnrestorableSessions(true);
manager.setLazyLoad(true);
File testDir = MavenTestingUtils.getTargetTestingDir("hashes");
Assert.assertTrue(testDir.mkdirs());
testDir.mkdirs();
manager.setStoreDirectory(testDir);
Assert.assertTrue(MavenTestingUtils.getTargetFile("dangerFile.session").createNewFile());
MavenTestingUtils.getTargetFile("dangerFile.session").createNewFile();
Assert.assertTrue("File should exist!", MavenTestingUtils.getTargetFile("dangerFile.session").exists());
@ -77,7 +77,7 @@ public class HashSessionManagerTest
manager.setDeleteUnrestorableSessions(true);
manager.setLazyLoad(true);
File testDir = MavenTestingUtils.getTargetTestingDir("hashes");
Assert.assertTrue(testDir.mkdirs());
testDir.mkdirs();
manager.setStoreDirectory(testDir);
Assert.assertTrue(new File(testDir, "validFile.session").createNewFile());
@ -94,7 +94,7 @@ public class HashSessionManagerTest
public void testHashSession() throws Exception
{
File testDir = MavenTestingUtils.getTargetTestingDir("saved");
Assert.assertTrue(testDir.mkdirs());
testDir.mkdirs();
Server server = new Server();
SessionHandler handler = new SessionHandler();