git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@442117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jan Materne 2006-09-11 07:41:31 +00:00
parent 90d2715be2
commit 249b65bafb
1 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@ -166,7 +166,7 @@ public class AntUnit extends Task {
}
if (failOnError) {
throw new BuildException(ERROR_TESTS_FAILED
+ failures + " failure"
+ failures + " failure"
+ (failures != 1 ? "s" : "")
+ " and "
+ errors + " error"
@ -251,7 +251,7 @@ public class AntUnit extends Task {
fireError(name, e);
}
} finally {
// fire endTest her instead of the endTarget
// fire endTest here instead of the endTarget
// event, otherwise an error would be
// registered after the endTest event -
// endTarget is called before out catch block
@ -271,7 +271,7 @@ public class AntUnit extends Task {
newProject = null;
}
}
/**
* Redirect output to new project instance.
*/
@ -439,4 +439,4 @@ public class AntUnit extends Task {
public void messageLogged(BuildEvent event) {}
}
}
}