Changeset 5146


Ignore:
Timestamp:
Oct 20, 2009, 10:26:17 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1411: Test programs must empty the static cache before running

Location:
trunk/src/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test/TestUtil.java

    r4889 r5146  
    2929import net.sf.basedb.util.MD5;
    3030
     31import java.io.File;
     32import java.io.FileFilter;
    3133import java.net.InetAddress;
    3234import java.sql.Connection;
     
    151153      showDbInfo();
    152154      Application.start(false);
     155      Application.getStaticCache().cleanUp(new FileFilter()
     156      {
     157        @Override
     158        public boolean accept(File pathname)
     159        {
     160          return true;
     161        }
     162      });
    153163      sc = Application.newSessionControl(client, getLocalIp(), null);
    154164      login();
  • trunk/src/test/net/sf/basedb/test/TestUtil.java

    r4514 r5146  
    2323
    2424import java.io.File;
     25import java.io.FileFilter;
    2526import java.io.FileNotFoundException;
    2627import java.io.FileWriter;
     
    8788      }
    8889      Application.start(false);
     90      write("done.\n");
     91      write("--Cleaning static cache from old items\n");
     92      Application.getStaticCache().cleanUp(new FileFilter()
     93      {
     94        @Override
     95        public boolean accept(File pathname)
     96        {
     97          return true;
     98        }
     99      });
    89100      sc = Application.newSessionControl(client, getLocalIp(), null);
    90       write("done.\n");
    91101    }
    92102    catch (Throwable ex)
Note: See TracChangeset for help on using the changeset viewer.