Project

General

Profile

« Previous | Next » 

Revision 8675

clear test password file so subsequent runs will not fail -- tests assume blank file to begin with.

View differences:

AuthFileTest.java
18 18
 */
19 19
package edu.ucsb.nceas.metacat.authentication;
20 20

  
21
import java.io.File;
22

  
21 23
import junit.framework.Test;
22 24
import junit.framework.TestSuite;
23 25
import edu.ucsb.nceas.MCTestCase;
......
48 50
     public AuthFileTest(String name)
49 51
     {
50 52
         super(name);
53
         
54
         // clear the test password file for subsequent runs
55
         File pwFile = new File(PASSWORDFILEPATH);
56
         if (pwFile.exists()) {
57
        	 pwFile.delete();
58
         }
51 59
     }
52 60
   
53 61
     /**

Also available in: Unified diff