Revision 8675
Added by ben leinfelder over 10 years ago
test/edu/ucsb/nceas/metacat/authentication/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
clear test password file so subsequent runs will not fail -- tests assume blank file to begin with.