|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sf.antcontrib.cpptasks.TestProcessorDef
public abstract class TestProcessorDef
Tests for ProcessorDef.
Constructor Summary | |
---|---|
TestProcessorDef(String name)
Constructor. |
Method Summary | |
---|---|
protected abstract ProcessorDef |
create()
Creates a new processor definition. |
protected ProcessorDef |
createExtendedProcessorDef(ProcessorDef baseProcessor)
Creates a processor initialized to be an extension of the base processor. |
protected ProcessorConfiguration |
getConfiguration(ProcessorDef extendedProcessor)
Gets the processor configuration. |
protected abstract String[] |
getPreArguments(ProcessorDef processor)
Gets command line arguments that precede filenames. |
void |
testExtendsDebug()
Tests that the debug attribute in the base processor is effective when creating the command line for a processor that extends it. |
protected void |
testExtendsFileSet(File tempFile)
Tests that a fileset in the base processor is effective when evaluating the files included in an extending processor. |
void |
testExtendsIf()
Tests that the if attribute in the base processor is effective when evaluating if an extending processor is active. |
protected void |
testExtendsRebuild(ProcessorDef baseProcessor)
Tests that the rebuild attribute in the base processor is effective when creating the command line for a processor that extends it. |
void |
testExtendsUnless()
Tests that the unless attribute in the base processor is effective when evaluating if an extending processor is active. |
void |
testIsActive2()
Tests that isActive returns true when "if" references a set property. |
void |
testIsActive3()
Tests that isActive returns false when "if" references an unset property. |
void |
testIsActive4()
Tests that evaluating isActive when "if" refernces a property with the value "false" throws an exception to warn of a suspicious value. |
void |
testIsActive5()
Tests that isActive returns false when "unless" references a set property. |
void |
testIsActive6()
Tests that isActive returns true when "unless" references an unset property. |
void |
testIsActive7()
Tests that evaluating isActive when "unless" references a property with the value "false" throws an exception to warn of a suspicious value. |
void |
testIsActive8()
Tests if a processor is active when both "if" and "unless" are specified and the associated properties are set. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
Constructor Detail |
---|
public TestProcessorDef(String name)
name
- test nameMethod Detail |
---|
protected abstract ProcessorDef create()
public final void testIsActive2()
public final void testIsActive3()
public final void testIsActive4()
public final void testIsActive5()
public final void testIsActive6()
public final void testIsActive7()
public final void testIsActive8()
protected final ProcessorDef createExtendedProcessorDef(ProcessorDef baseProcessor)
baseProcessor
- base processor
protected final ProcessorConfiguration getConfiguration(ProcessorDef extendedProcessor)
extendedProcessor
- processor under test
protected abstract String[] getPreArguments(ProcessorDef processor)
processor
- processor under test
protected final void testExtendsFileSet(File tempFile) throws IOException
tempFile
- temporary file
IOException
- if unable to delete filepublic final void testExtendsIf()
public final void testExtendsUnless()
public final void testExtendsDebug()
protected final void testExtendsRebuild(ProcessorDef baseProcessor)
baseProcessor
- processor under test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |