org.deegree.junit
Class XMLAssert
java.lang.Object
org.deegree.junit.XMLAssert
public class XMLAssert
- extends Object
This class contains static assert methods for using XML validation results in JUnit test cases.
- Version:
- $Revision: 18816 $, $Date: 2009-07-30 17:01:53 +0200 (Thu, 30 Jul 2009) $
- Author:
- Oliver Tonnhofer, Markus Schneider, last edited by: $Author: mschneider $
- See Also:
SchemaValidator
Method Summary |
static void |
assertValidity(Reader reader,
String... schemaLocations)
Asserts that the specified XML document is valid with respect to the schemas that it references (using
xsi:schemaLocation attributes) and/or the specified schema documents. |
static void |
assertValidity(org.apache.xerces.xni.parser.XMLInputSource source,
String... schemaLocations)
Asserts that the specified XML document is valid with respect to the schemas that it references (using
xsi:schemaLocation attributes) and/or the specified schema documents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLAssert
public XMLAssert()
assertValidity
public static void assertValidity(Reader reader,
String... schemaLocations)
- Asserts that the specified XML document is valid with respect to the schemas that it references (using
xsi:schemaLocation
attributes) and/or the specified schema documents.
- Parameters:
reader
- provides the XML document to be validatedschemaLocations
- optional locations of schema documents to be considered in the validation
assertValidity
public static void assertValidity(org.apache.xerces.xni.parser.XMLInputSource source,
String... schemaLocations)
- Asserts that the specified XML document is valid with respect to the schemas that it references (using
xsi:schemaLocation
attributes) and/or the specified schema documents.
- Parameters:
source
- provides the document to be validatedschemaLocations
- optional locations of schema documents to be considered in the validation
Copyright © 2011. All Rights Reserved.