Revision 3525
Added by Jing Tao about 17 years ago
test/edu/ucsb/nceas/metacatnettest/MetaCatServletNetTest.java | ||
---|---|---|
27 | 27 |
package edu.ucsb.nceas.metacatnettest; |
28 | 28 |
|
29 | 29 |
import edu.ucsb.nceas.metacat.*; |
30 |
import edu.ucsb.nceas.utilities.Options; |
|
30 | 31 |
import edu.ucsb.nceas.morpho.framework.*; |
31 | 32 |
import junit.framework.Test; |
32 | 33 |
import junit.framework.TestCase; |
... | ... | |
45 | 46 |
*/ |
46 | 47 |
public class MetaCatServletNetTest extends TestCase |
47 | 48 |
{ |
49 |
static |
|
50 |
{ |
|
51 |
try |
|
52 |
{ |
|
53 |
Options.initialize(new File("build/tests/metacat.properties")); |
|
54 |
} |
|
55 |
catch(Exception e) |
|
56 |
{ |
|
57 |
System.err.println("Exception in initialize option in MetacatServletNetTest "+e.getMessage()); |
|
58 |
} |
|
59 |
} |
|
60 |
|
|
48 | 61 |
private String metacatURL=MetaCatUtil.getOption("junittesturl"); |
49 | 62 |
private String serialNumber; |
50 | 63 |
private static Logger logMetacat = Logger.getLogger(DocumentImpl.class); |
Also available in: Unified diff
Fixed a bug that Option wasn't initialized.