Revision 6049
Added by Jing Tao over 13 years ago
test/edu/ucsb/nceas/metacattest/service/XMLSchemaParserTest.java | ||
---|---|---|
6 | 6 |
|
7 | 7 |
import edu.ucsb.nceas.metacat.properties.PropertyService; |
8 | 8 |
import edu.ucsb.nceas.metacat.service.XMLSchemaParser; |
9 |
import edu.ucsb.nceas.MCTestCase; |
|
9 | 10 |
|
10 | 11 |
import junit.framework.Test; |
11 | 12 |
import junit.framework.TestCase; |
... | ... | |
17 | 18 |
* @author tao |
18 | 19 |
* |
19 | 20 |
*/ |
20 |
public class XMLSchemaParserTest extends TestCase |
|
21 |
public class XMLSchemaParserTest extends MCTestCase
|
|
21 | 22 |
{ |
22 | 23 |
private static String schemaLocation = "./test/servertestfiles/product.xsd"; |
23 | 24 |
private static String INCLUDEDPATH = "./item.xsd"; |
... | ... | |
72 | 73 |
|
73 | 74 |
try |
74 | 75 |
{ |
75 |
PropertyService.getInstance(CONFIG_DIR_TEST); |
|
76 |
//PropertyService.getInstance(CONFIG_DIR_TEST);
|
|
76 | 77 |
FileInputStream schemaInputStream = |
77 | 78 |
new FileInputStream(new File(schemaLocation)); |
78 | 79 |
|
Also available in: Unified diff
Make this class be the subclass of the MCTestCase. The super class will initialize the property service for it.