|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.doxia.xsd.AbstractXmlValidator
org.apache.maven.doxia.xsd.AbstractXmlValidatorTest
public abstract class AbstractXmlValidatorTest
Abstract class to validate XML files with DTD or XSD mainly for Doxia namespaces.
Field Summary |
---|
Fields inherited from class org.apache.maven.doxia.xsd.AbstractXmlValidator |
---|
EOL |
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
container, context |
Constructor Summary | |
---|---|
AbstractXmlValidatorTest()
|
Method Summary | |
---|---|
protected static Map<String,String> |
getAllTestDocuments()
Find test resources in the doxia-test-docs-XXX.jar or in an IDE project. |
protected EntityResolver |
getEntityResolver()
Returns the EntityResolver that is used by the XMLReader for validation. |
protected abstract String[] |
getIncludes()
|
protected Map<String,String> |
getTestDocuments()
|
Methods inherited from class org.apache.maven.doxia.xsd.AbstractXmlValidator |
---|
addNamespaces, isFailErrorMessage, tearDown, testValidateFiles |
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
---|
customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setUp |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractXmlValidatorTest()
Method Detail |
---|
protected abstract String[] getIncludes()
getTestDocuments()
protected Map<String,String> getTestDocuments() throws IOException
getTestDocuments
in class AbstractXmlValidator
getIncludes()
.
IOException
- if anygetIncludes()
,
getAllTestDocuments()
protected EntityResolver getEntityResolver()
AbstractXmlParser.CachedFileEntityResolver
is used,
but implementations should override this for performance reasons.
getEntityResolver
in class AbstractXmlValidator
protected static Map<String,String> getAllTestDocuments() throws IOException
doxia-test-docs-XXX.jar
or in an IDE project.
jar:file:/.../doxia-test-docs-XXX.jar!/path/to/resource
IOException
- if any
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |