public abstract class AbstractSinkTestCase extends PlexusTestCase
Constructor and Description |
---|
AbstractSinkTestCase() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.maven.doxia.parser.Parser |
createParser()
Return a Parser for testing.
|
protected abstract Sink |
createSink()
Return a Sink for testing.
|
File |
getBasedirFile()
Return the current base diretory as a File.
|
protected Reader |
getTestReader()
Returns a Reader that gives access to a common test apt file.
|
protected Writer |
getTestWriter()
Returns a Writer to write a test output result.
|
protected abstract String |
outputExtension()
Return the default extension of files created by the test Sink.
|
void |
testApt()
Parses the test apt document (obtained via
getTestReader() ) with the Parser returned
by createParser() into the Sink returned by createSink() . |
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setUp, setupContainer, tearDown
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public AbstractSinkTestCase()
public void testApt() throws Exception
getTestReader()
) with the Parser returned
by createParser()
into the Sink returned by createSink()
.Exception
- if anything goes wrong.protected abstract String outputExtension()
createSink()
protected abstract org.apache.maven.doxia.parser.Parser createParser()
protected abstract Sink createSink() throws Exception
Exception
- if the Sink cannot be constructed.protected Writer getTestWriter() throws Exception
"target/output/test. + extension"
, where extension is returned by
outputExtension()
, in the current base directory.Exception
- if the Writer cannot be constructed.protected Reader getTestReader()
public File getBasedirFile()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.