Revision 3875
Added by Jing Tao about 16 years ago
MetacatClientTest.java | ||
---|---|---|
48 | 48 |
import edu.ucsb.nceas.metacat.client.MetacatFactory; |
49 | 49 |
import edu.ucsb.nceas.metacat.client.MetacatInaccessibleException; |
50 | 50 |
import edu.ucsb.nceas.utilities.IOUtil; |
51 |
import edu.ucsb.nceas.utilities.Options; |
|
51 | 52 |
import junit.framework.Test; |
52 | 53 |
import junit.framework.TestCase; |
53 | 54 |
import junit.framework.TestSuite; |
... | ... | |
60 | 61 |
*/ |
61 | 62 |
public class MetacatClientTest extends TestCase |
62 | 63 |
{ |
64 |
/* Initialize Options*/ |
|
65 |
static |
|
66 |
{ |
|
67 |
try |
|
68 |
{ |
|
69 |
Options.initialize(new File("build/tests/metacat.properties")); |
|
70 |
MetaCatUtil.pathsForIndexing |
|
71 |
= MetaCatUtil.getOptionList(MetaCatUtil.getOption("indexPaths")); |
|
72 |
} |
|
73 |
catch(Exception e) |
|
74 |
{ |
|
75 |
System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage()); |
|
76 |
} |
|
77 |
} |
|
63 | 78 |
private String metacatUrl = MetaCatUtil.getOption("metacatUrl"); |
64 | 79 |
private String wrongMetacatUrl= |
65 | 80 |
"http://somepalce.somewhere.com/some/servlet/metacat"; |
Also available in: Unified diff
Check into cvs head. Add initialize option statment at the beginging of the class.