public abstract class ToolTest
extends java.lang.Object
ToolTest
class is a base class for all JUnit test
cases that run the tool with some parameters.Constructor and Description |
---|
ToolTest()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addOption(Parameter param)
Adds no-value parameter to the tool command line.
|
protected void |
addOption(Parameter param,
java.lang.String value)
Adds command line parameter and, probably, it's value to the tool command line.
|
protected void |
addOption(java.lang.String optLongName)
Adds no-value option with the specified long name to the tool command line.
|
protected void |
addOption(java.lang.String optLongName,
java.lang.String value)
Adds option long name and, probably, it's value to the tool command line.
|
protected abstract java.lang.String |
getModuleName()
Returns the target module name.
|
void |
runTest(java.lang.String... args)
Runs the tool with the specified arguments.
|
protected abstract java.lang.String getModuleName()
protected void addOption(java.lang.String optLongName, java.lang.String value)
optLongName
- The option long name.value
- The option value.protected void addOption(Parameter param, java.lang.String value)
param
- The command line parameter.value
- The option value.protected void addOption(java.lang.String optLongName)
optLongName
- The option long name.protected void addOption(Parameter param)
param
- The parameter.public void runTest(java.lang.String... args)
args
- The argument strings.