Revision 3567
Added by Jing Tao over 16 years ago
MetaCatServletTest.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
import edu.ucsb.nceas.metacat.*; |
30 | 30 |
import edu.ucsb.nceas.utilities.HttpMessage; |
31 |
import edu.ucsb.nceas.utilities.Options; |
|
31 | 32 |
//import edu.ucsb.nceas.morpho.framework.*; |
32 | 33 |
import junit.framework.Test; |
33 | 34 |
import junit.framework.TestCase; |
... | ... | |
49 | 50 |
private String metacatURL=MetaCatUtil.getOption("junittesturl"); |
50 | 51 |
private String serialNumber; |
51 | 52 |
private static final Log log = LogFactory.getLog("edu.ucsb.nceas.metacattest.MetaCatServletTest"); |
53 |
/* Initialize Options*/ |
|
54 |
static |
|
55 |
{ |
|
56 |
try |
|
57 |
{ |
|
58 |
Options.initialize(new File("build/tests/metacat.properties")); |
|
59 |
} |
|
60 |
catch(Exception e) |
|
61 |
{ |
|
62 |
System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage()); |
|
63 |
} |
|
64 |
} |
|
52 | 65 |
|
53 | 66 |
/** |
54 | 67 |
* Constructor to build the test |
Also available in: Unified diff
Add code to initialize Options and some code clean up