You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ja...@apache.org on 2008/07/10 18:30:09 UTC

svn commit: r675638 - /incubator/jspwiki/trunk/tests/stress/MassiveRepositoryTest.java

Author: jalkanen
Date: Thu Jul 10 09:30:09 2008
New Revision: 675638

URL: http://svn.apache.org/viewvc?rev=675638&view=rev
Log:
Now cleans the repo before starting to check.

Modified:
    incubator/jspwiki/trunk/tests/stress/MassiveRepositoryTest.java

Modified: incubator/jspwiki/trunk/tests/stress/MassiveRepositoryTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/stress/MassiveRepositoryTest.java?rev=675638&r1=675637&r2=675638&view=diff
==============================================================================
--- incubator/jspwiki/trunk/tests/stress/MassiveRepositoryTest.java (original)
+++ incubator/jspwiki/trunk/tests/stress/MassiveRepositoryTest.java Thu Jul 10 09:30:09 2008
@@ -21,10 +21,18 @@
     protected void setUp() throws Exception
     {
         super.setUp();     
-        
-        props.load( TestEngine.findTestProperties("/jspwiki_vers.properties") );
 
+        props.load( TestEngine.findTestProperties("/jspwiki_vers.properties") );
         props.setProperty( CachingProvider.PROP_CACHECAPACITY, "1000" );
+
+        
+        String files = props.getProperty( FileSystemProvider.PROP_PAGEDIR );
+
+        // Remove file
+        File f = new File( files );
+
+        TestEngine.deleteAll(f);
+
         engine = new TestEngine(props);
     }