From f36700092c2ab23ab63bb6ab61f28eebd1443a4d Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Thu, 27 Mar 2014 16:11:11 +0100 Subject: [PATCH] Don't assert on existing directories/files. --- .../jetty/server/session/HashSessionManagerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/session/HashSessionManagerTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/session/HashSessionManagerTest.java index 56a61d01b4a..451cb00c331 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/session/HashSessionManagerTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/session/HashSessionManagerTest.java @@ -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();