diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/testing/BlockFor.java b/src/main/org/apache/tools/ant/taskdefs/optional/testing/BlockFor.java index a886457d3..3df287018 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/testing/BlockFor.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/testing/BlockFor.java @@ -58,7 +58,7 @@ public class BlockFor extends WaitFor { */ protected void processTimeout() throws BuildTimeoutException { super.processTimeout(); - throw new BuildTimeoutException(text,getLocation()); + throw new BuildTimeoutException(text, getLocation()); } /** diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java b/src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java index 2c47ac6bc..dbba46736 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java @@ -178,42 +178,69 @@ public class Funtest extends Task { } } + /** + * Add a condition. + * @param newCondition the condition to add. + */ public void addCondition(Condition newCondition) { logOverride("condition", condition); condition = newCondition; } + /** + * Add an application. + * @param sequence the application to add. + */ public void addApplication(Sequential sequence) { logOverride("application", application); application = sequence; } + /** + * Add a setup sequence. + * @param sequence the setup sequence to add. + */ public void addSetup(Sequential sequence) { logOverride("setup", setup); setup = sequence; } + /** + * Add a block. + * @param sequence the block for to add. + */ public void addBlock(BlockFor sequence) { logOverride("block", block); block = sequence; } + /** + * add tests. + * @param sequence a sequence to add. + */ public void addTests(Sequential sequence) { logOverride("tests", tests); tests = sequence; } + /** + * set reporting sequence of tasks. + * @param sequence a reporting sequence to use. + */ public void addReporting(Sequential sequence) { logOverride("reporting", reporting); reporting = sequence; } + /** + * set teardown sequence of tasks. + * @param sequence a teardown sequence to use. + */ public void addTeardown(Sequential sequence) { logOverride("teardown", teardown); teardown = sequence; } - public void setFailOnTeardownErrors(boolean failOnTeardownErrors) { this.failOnTeardownErrors = failOnTeardownErrors; }