Revision 4127
Added by daigle about 16 years ago
SubTreeTest.java | ||
---|---|---|
29 | 29 |
import edu.ucsb.nceas.metacat.*; |
30 | 30 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
31 | 31 |
import edu.ucsb.nceas.metacat.util.MetaCatUtil; |
32 |
import edu.ucsb.nceas.utilities.Options; |
|
33 |
//import edu.ucsb.nceas.morpho.framework.*; |
|
34 | 32 |
import junit.framework.Test; |
35 | 33 |
import junit.framework.TestCase; |
36 | 34 |
import junit.framework.TestResult; |
... | ... | |
38 | 36 |
import org.apache.commons.logging.Log; |
39 | 37 |
import org.apache.commons.logging.LogFactory; |
40 | 38 |
|
41 |
import java.io.*; |
|
42 |
import java.net.*; |
|
43 | 39 |
import java.util.*; |
44 | 40 |
|
45 | 41 |
|
... | ... | |
50 | 46 |
{ |
51 | 47 |
private SubTree tree = null; |
52 | 48 |
private static final Log log = LogFactory.getLog("edu.ucsb.nceas.metacattest.ReplicationServerListTest"); |
53 |
/* Initialize Options*/
|
|
49 |
/* Initialize properties*/
|
|
54 | 50 |
static |
55 | 51 |
{ |
56 | 52 |
try |
57 | 53 |
{ |
58 |
Options.initialize(new File("build/tests/metacat.properties"));
|
|
54 |
PropertyService.getInstance("build/tests");
|
|
59 | 55 |
MetaCatUtil.pathsForIndexing |
60 | 56 |
= MetaCatUtil.getOptionList(PropertyService.getProperty("indexPaths")); |
61 | 57 |
} |
Also available in: Unified diff
Replace Options class with PropertyService and create PropertyService using log directory name instead of servlet context