Browse Source

some javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@591427 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 17 years ago
parent
commit
02bc80db74
2 changed files with 29 additions and 2 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/testing/BlockFor.java
  2. +28
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/testing/BlockFor.java View File

@@ -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());
}

/**


+ 28
- 1
src/main/org/apache/tools/ant/taskdefs/optional/testing/Funtest.java View File

@@ -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;
}


Loading…
Cancel
Save