|
||||||||||
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
public abstract class AbstractXmlValidator
Abstract class to validate XML files.
Field Summary | |
---|---|
protected static String |
EOL
|
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
container, context |
Constructor Summary | |
---|---|
AbstractXmlValidator()
|
Method Summary | |
---|---|
protected abstract String |
addNamespaces(String content)
|
protected abstract EntityResolver |
getEntityResolver()
Returns the EntityResolver that is used by the XMLReader for validation. |
protected abstract Map<String,String> |
getTestDocuments()
|
protected boolean |
isFailErrorMessage(String message)
Filter fail message. |
protected void |
tearDown()
|
void |
testValidateFiles()
Validate the test documents returned by getTestDocuments() with DTD or XSD using xerces. |
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 |
Field Detail |
---|
protected static final String EOL
Constructor Detail |
---|
public AbstractXmlValidator()
Method Detail |
---|
protected boolean isFailErrorMessage(String message)
message
- not null
true
if the given message will fail the test.protected void tearDown() throws Exception
tearDown
in class org.codehaus.plexus.PlexusTestCase
Exception
public void testValidateFiles() throws Exception
getTestDocuments()
with DTD or XSD using xerces.
Exception
- if anyaddNamespaces(String)
,
getTestDocuments()
protected abstract String addNamespaces(String content)
content
- xml content not null
protected abstract Map<String,String> getTestDocuments() throws IOException
IOException
- if anyprotected abstract EntityResolver getEntityResolver()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |