public abstract class AbstractModuleTest extends org.codehaus.plexus.PlexusTestCase implements Markup
COLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STAR| Constructor and Description |
|---|
AbstractModuleTest() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getBasedirFile()
Returns the common base directory.
|
protected abstract String |
getOutputDir()
Returns the directory where test output will go.
|
protected Reader |
getTestReader(String baseName)
Returns an InputStreamReader to read a resource from a file
in the test target output directory.
|
protected Reader |
getTestReader(String baseName,
String extension)
Returns an InputStreamReader to read a resource from a file
in the test target output directory.
|
protected Writer |
getTestWriter(String baseName)
Returns a FileWriter to write to a file with the given name
in the test target output directory.
|
protected Writer |
getTestWriter(String baseName,
String extension)
Returns a FileWriter to write to a file with the given name
in the test target output directory.
|
protected File |
getTestWriterFile(String baseName) |
protected File |
getTestWriterFile(String baseName,
String extension) |
protected Writer |
getXmlTestWriter(String baseName)
Returns an XML FileWriter to write to a file with the given name
in the test target output directory.
|
protected Writer |
getXmlTestWriter(String baseName,
String extension)
Returns an XML FileWriter to write to a file with the given name
in the test target output directory.
|
protected String |
outputBaseDir()
Returns the base directory where all test output will go.
|
protected abstract String |
outputExtension()
Determines the default file extension for the current module.
|
customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setUp, tearDowncountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatpublic AbstractModuleTest()
protected Writer getTestWriter(String baseName, String extension) throws IOException
baseName - The name of the target file.extension - The file extension of the file to write.IOException - If the FileWriter could not be generated.WriterFactory.newWriter(File, String)protected File getTestWriterFile(String baseName, String extension)
protected Writer getXmlTestWriter(String baseName) throws IOException
baseName - The name of the target file.IOException - If the FileWriter could not be generated.getXmlTestWriter(String, String)protected Writer getXmlTestWriter(String baseName, String extension) throws IOException
baseName - The name of the target file.extension - The file extension of the file to write.IOException - If the FileWriter could not be generated.WriterFactory.newXmlWriter(File)protected Writer getTestWriter(String baseName) throws IOException
baseName - The name of the target file.IOException - If the FileWriter could not be generated.getTestWriter(String, String)protected File getTestWriterFile(String baseName)
protected Reader getTestReader(String baseName, String extension)
baseName - The name of the resource file to read.extension - The file extension of the resource file to read.protected Reader getTestReader(String baseName)
baseName - The name of the resource file to read.getTestReader(String, String)protected File getBasedirFile()
protected final String outputBaseDir()
protected abstract String outputExtension()
protected abstract String getOutputDir()
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.