|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.codehaus.plexus.PlexusTestCase org.apache.maven.doxia.xsd.AbstractXmlValidatorTest
public abstract class AbstractXmlValidatorTest
Abstract class to validate XML files with Doxia namespaces.
Field Summary | |
---|---|
protected static String |
EOL
The vm line separator |
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
container, context |
Constructor Summary | |
---|---|
AbstractXmlValidatorTest()
|
Method Summary | |
---|---|
protected abstract String |
addNamespaces(String content)
|
protected static Map |
getAllTestDocuments()
Find test resources in the doxia-test-docs-XXX.jar |
protected abstract String[] |
getIncludes()
|
protected Map |
getTestDocuments()
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testXmlFilesWithDoxiaNamespaces()
Test xml files with namespace. |
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 |
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 |
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 AbstractXmlValidatorTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class org.codehaus.plexus.PlexusTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class org.codehaus.plexus.PlexusTestCase
Exception
protected abstract String[] getIncludes()
getTestDocuments()
protected abstract String addNamespaces(String content)
content
- xml content not null
public void testXmlFilesWithDoxiaNamespaces() throws Exception
Exception
- if anyprotected Map getTestDocuments() throws IOException
getIncludes()
.
IOException
- if anygetIncludes()
,
getAllTestDocuments()
protected static Map getAllTestDocuments() throws IOException
doxia-test-docs-XXX.jar
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 |