public class XMLSchemaTestCase extends Object
Tests for XInclude aware parsing.
| Modifier and Type | Field and Description | 
|---|---|
protected Digester | 
digester
The digester instance we will be processing. 
 | 
| Constructor and Description | 
|---|
XMLSchemaTestCase()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected InputStream | 
getInputStream(String name)
Return an appropriate InputStream for the specified test file (which must be inside our current package. 
 | 
void | 
setUp()
Set up instance variables required by this test case. 
 | 
void | 
tearDown()
Tear down instance variables required by this test case. 
 | 
void | 
testBadDocument()  | 
void | 
testGoodDocument()
Test XML Schema validation. 
 | 
public XMLSchemaTestCase()
public void setUp() throws SAXException
SAXExceptionpublic void tearDown()
public void testGoodDocument() throws SAXException, IOException
SAXExceptionIOExceptionpublic void testBadDocument() throws SAXException, IOException
SAXExceptionIOExceptionprotected InputStream getInputStream(String name) throws IOException
name - Name of the test file we wantIOException - if an input/output error occursCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.