|
||||||||||
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 net.sf.antcontrib.cpptasks.TestProcessorDef net.sf.antcontrib.cpptasks.TestCompilerDef
public final class TestCompilerDef
Tests for CompilerDef.
Constructor Summary | |
---|---|
TestCompilerDef(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
protected net.sf.antcontrib.cpptasks.ProcessorDef |
create()
Creates a new processor. |
protected java.lang.String[] |
getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor)
Gets the command line arguments that precede filenames. |
void |
testExtendsClassname()
Tests that the classname attribute in the base compiler is effective. |
void |
testExtendsCompilerArgs()
Tests that compilerarg's contained in the base compiler definition are effective. |
void |
testExtendsDefineSet()
Tests that defineset's contained in the base compiler definition are effective. |
void |
testExtendsExceptions()
Tests that the extend attribute of the base compiler definition is effective. |
void |
testExtendsFileSet()
Tests if a fileset enclosed in the base compiler definition is effective. |
void |
testExtendsIncludePath()
Tests that includepath's contained in the base compiler definition are effective. |
void |
testExtendsMultithreaded()
Tests that the multithread attribute of the base compiler definition is effective. |
void |
testExtendsName()
Tests that the name attribute in the base compiler is effective. |
void |
testExtendsRebuild()
Tests if the rebuild attribute of the base compiler definition is effective. |
void |
testExtendsSysIncludePath()
Tests that sysincludepath's contained in the base compiler definition are effective. |
void |
testGetActiveDefines()
This method tests CompilerDef.getActiveDefines. |
void |
testGetActiveIncludePaths()
This method tests CompilerDef.getActiveIncludePath. |
void |
testGetGcc()
Tests that setting classname to the Gcc compiler is effective. |
void |
testGetMSVC()
Tests that setting classname to the MSVC compiler is effective. |
void |
testUnknownClass()
Tests that setting classname to an bogus class name results in a BuildException. |
void |
testWrongType()
Test that setting classname to a class that doesn't support Compiler throws a BuildException. |
Methods inherited from class net.sf.antcontrib.cpptasks.TestProcessorDef |
---|
createExtendedProcessorDef, getConfiguration, testExtendsDebug, testExtendsFileSet, testExtendsIf, testExtendsRebuild, testExtendsUnless, testIsActive2, testIsActive3, testIsActive4, testIsActive5, testIsActive6, testIsActive7, testIsActive8 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestCompilerDef(java.lang.String name)
name
- test nameMethod Detail |
---|
protected net.sf.antcontrib.cpptasks.ProcessorDef create()
create
in class TestProcessorDef
public void testGetActiveDefines()
public void testGetActiveIncludePaths()
public void testGetGcc()
public void testGetMSVC()
public void testUnknownClass()
public void testWrongType()
protected java.lang.String[] getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor)
getPreArguments
in class TestProcessorDef
processor
- processor under test
public void testExtendsFileSet() throws java.io.IOException
java.io.IOException
- if unable to create or delete a temporary filepublic void testExtendsRebuild()
public void testExtendsCompilerArgs()
public void testExtendsDefineSet()
public void testExtendsIncludePath()
public void testExtendsSysIncludePath()
public void testExtendsExceptions()
public void testExtendsMultithreaded()
public void testExtendsName()
public void testExtendsClassname()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |