From 683d490074d93baa8a47db7ec43b7bd31145a12a Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Thu, 5 Nov 2009 23:00:15 +0100 Subject: Tar file expanded and committed --- .../sf/antcontrib/cpptasks/TestProcessorDef.html | 628 +++++++++++++++++++++ 1 file changed, 628 insertions(+) create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html (limited to 'site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html') diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html new file mode 100644 index 0000000..35344d9 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html @@ -0,0 +1,628 @@ + + + + + + + +TestProcessorDef (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestProcessorDef

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestProcessorDef
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestCompilerDef, TestLinkerDef
+
+
+
+
public abstract class TestProcessorDef
extends junit.framework.TestCase
+ + +

+Tests for ProcessorDef. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestProcessorDef(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  net.sf.antcontrib.cpptasks.ProcessorDefcreate() + +
+          Creates a new processor definition.
+protected  net.sf.antcontrib.cpptasks.ProcessorDefcreateExtendedProcessorDef(net.sf.antcontrib.cpptasks.ProcessorDef baseProcessor) + +
+          Creates a processor initialized to be an extension of the base processor.
+protected  net.sf.antcontrib.cpptasks.compiler.ProcessorConfigurationgetConfiguration(net.sf.antcontrib.cpptasks.ProcessorDef extendedProcessor) + +
+          Gets the processor configuration.
+protected abstract  java.lang.String[]getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor) + +
+          Gets command line arguments that precede filenames.
+ voidtestExtendsDebug() + +
+          Tests that the debug attribute in the base processor is effective when + creating the command line for a processor that extends it.
+protected  voidtestExtendsFileSet(java.io.File tempFile) + +
+          Tests that a fileset in the base processor is effective when evaluating + the files included in an extending processor.
+ voidtestExtendsIf() + +
+          Tests that the if attribute in the base processor is effective when + evaluating if an extending processor is active.
+protected  voidtestExtendsRebuild(net.sf.antcontrib.cpptasks.ProcessorDef baseProcessor) + +
+          Tests that the rebuild attribute in the base processor is effective when + creating the command line for a processor that extends it.
+ voidtestExtendsUnless() + +
+          Tests that the unless attribute in the base processor is effective when + evaluating if an extending processor is active.
+ voidtestIsActive2() + +
+          Tests that isActive returns true when "if" references a set property.
+ voidtestIsActive3() + +
+          Tests that isActive returns false when "if" references an unset property.
+ voidtestIsActive4() + +
+          Tests that evaluating isActive when "if" refernces a property with the + value "false" throws an exception to warn of a suspicious value.
+ voidtestIsActive5() + +
+          Tests that isActive returns false when "unless" references a set + property.
+ voidtestIsActive6() + +
+          Tests that isActive returns true when "unless" references an unset + property.
+ voidtestIsActive7() + +
+          Tests that evaluating isActive when "unless" references a property with + the value "false" throws an exception to warn of a suspicious value.
+ voidtestIsActive8() + +
+          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
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestProcessorDef

+
+public TestProcessorDef(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - test name
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected abstract net.sf.antcontrib.cpptasks.ProcessorDef create()
+
+
Creates a new processor definition. +

+

+ +
Returns:
created processor definition
+
+
+
+ +

+testIsActive2

+
+public final void testIsActive2()
+
+
Tests that isActive returns true when "if" references a set property. +

+

+
+
+
+
+ +

+testIsActive3

+
+public final void testIsActive3()
+
+
Tests that isActive returns false when "if" references an unset property. +

+

+
+
+
+
+ +

+testIsActive4

+
+public final void testIsActive4()
+
+
Tests that evaluating isActive when "if" refernces a property with the + value "false" throws an exception to warn of a suspicious value. +

+

+
+
+
+
+ +

+testIsActive5

+
+public final void testIsActive5()
+
+
Tests that isActive returns false when "unless" references a set + property. +

+

+
+
+
+
+ +

+testIsActive6

+
+public final void testIsActive6()
+
+
Tests that isActive returns true when "unless" references an unset + property. +

+

+
+
+
+
+ +

+testIsActive7

+
+public final void testIsActive7()
+
+
Tests that evaluating isActive when "unless" references a property with + the value "false" throws an exception to warn of a suspicious value. +

+

+
+
+
+
+ +

+testIsActive8

+
+public final void testIsActive8()
+
+
Tests if a processor is active when both "if" and "unless" are specified + and the associated properties are set. +

+

+
+
+
+
+ +

+createExtendedProcessorDef

+
+protected final net.sf.antcontrib.cpptasks.ProcessorDef createExtendedProcessorDef(net.sf.antcontrib.cpptasks.ProcessorDef baseProcessor)
+
+
Creates a processor initialized to be an extension of the base processor. +

+

+
Parameters:
baseProcessor - base processor +
Returns:
extending processor
+
+
+
+ +

+getConfiguration

+
+protected final net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration getConfiguration(net.sf.antcontrib.cpptasks.ProcessorDef extendedProcessor)
+
+
Gets the processor configuration. +

+

+
Parameters:
extendedProcessor - processor under test +
Returns:
configuration
+
+
+
+ +

+getPreArguments

+
+protected abstract java.lang.String[] getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor)
+
+
Gets command line arguments that precede filenames. +

+

+
Parameters:
processor - processor under test +
Returns:
array of command line parameters
+
+
+
+ +

+testExtendsFileSet

+
+protected final void testExtendsFileSet(java.io.File tempFile)
+                                 throws java.io.IOException
+
+
Tests that a fileset in the base processor is effective when evaluating + the files included in an extending processor. +

+

+
Parameters:
tempFile - temporary file +
Throws: +
java.io.IOException - if unable to delete file
+
+
+
+ +

+testExtendsIf

+
+public final void testExtendsIf()
+
+
Tests that the if attribute in the base processor is effective when + evaluating if an extending processor is active. +

+

+
+
+
+
+ +

+testExtendsUnless

+
+public final void testExtendsUnless()
+
+
Tests that the unless attribute in the base processor is effective when + evaluating if an extending processor is active. +

+

+
+
+
+
+ +

+testExtendsDebug

+
+public final void testExtendsDebug()
+
+
Tests that the debug attribute in the base processor is effective when + creating the command line for a processor that extends it. +

+

+
+
+
+
+ +

+testExtendsRebuild

+
+protected final void testExtendsRebuild(net.sf.antcontrib.cpptasks.ProcessorDef baseProcessor)
+
+
Tests that the rebuild attribute in the base processor is effective when + creating the command line for a processor that extends it. +

+

+
Parameters:
baseProcessor - processor under test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + -- cgit v1.2.3