public void addFailure(Test test, AssertionFailedError t) { addFailure(test, (Throwable) t); } /** * A test caused an error. * @param test a test * @param error the error thrown by the test */ public void addError(Test test, Throwable error) { formatError("\tCaused an ERROR", test, error)
public void addFailure(Test test, AssertionFailedError t) { addFailure(test, (Throwable) t); } /** * Interface TestListener. * * <p>An error occurred while running the test. * @param test the test. * @param t the error. */ public void addError(Test test, Throwable t) { formatError(ERROR, test, t)
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void addFailure(Test test, AssertionFailedError t) {
1
public void addFailure(Test test, AssertionFailedError t) {
2
        addFailure(test, (Throwable) t);
2
        addFailure(test, (Throwable) t);
3
    }
3
    }
4
    /**
4
    /**
5
     * A test caused an error
5
     * Interface TestListener.
6
     *
6
.
7
     * <p>An error occurred while running the test.
7
     * @param test  a test
8
     * @param test the test.
8
     * @param error the error thrown by the test
9
     * @param t the error.
9
     */
10
     */
10
    public void addError(Test test, Throwable error) {
11
    public void addError(Test test, Throwable t) {
11
        formatError("\tCaused an ERROR", test, error)
12
        formatError(ERROR, test, t)
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0