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 exception. */ public void addError(Test test, Throwable t) { formatError("\tCaused an ERROR", test, t)
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/PlainJUnitResultFormatter.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
     * Interface TestListener.
5
     * Interface TestListener.
6
     *
6
     *
7
     * <p>An error occurred while running the test.
7
     * <p>An error occurred while running the test.
8
     * @param test the test.
8
     * @param test the test.
9
     * @param t    the exception.
9
     * @param t the error.
10
     */
10
     */
11
    public void addError(Test test, Throwable t) {
11
    public void addError(Test test, Throwable t) {
12
        formatError("\tCaused an ERROR", test, t)
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