Revision 4127
Added by daigle about 16 years ago
QueryResultBuilderTest.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package edu.ucsb.nceas.metacattest; |
25 | 25 |
|
26 |
import java.io.File; |
|
27 |
import java.io.FileNotFoundException; |
|
28 |
import java.io.IOException; |
|
29 | 26 |
import java.sql.PreparedStatement; |
30 | 27 |
import java.sql.ResultSet; |
31 | 28 |
import java.util.Enumeration; |
32 | 29 |
import java.util.Hashtable; |
33 |
import java.util.Iterator; |
|
34 | 30 |
|
35 | 31 |
import edu.ucsb.nceas.metacat.DBConnection; |
36 | 32 |
import edu.ucsb.nceas.metacat.DBConnectionPool; |
37 |
import edu.ucsb.nceas.metacat.Version; |
|
38 | 33 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
39 |
import edu.ucsb.nceas.utilities.Options; |
|
40 | 34 |
|
41 | 35 |
import junit.framework.Test; |
42 | 36 |
import junit.framework.TestCase; |
... | ... | |
62 | 56 |
{ |
63 | 57 |
try |
64 | 58 |
{ |
65 |
Options.initialize(new File("build/tests/metacat.properties"));
|
|
59 |
PropertyService.getInstance("build/tests");
|
|
66 | 60 |
} |
67 | 61 |
catch(Exception e) |
68 | 62 |
{ |
Also available in: Unified diff
Replace Options class with PropertyService and create PropertyService using log directory name instead of servlet context