CloneSet166


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13320.953class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111205
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java
213218
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java
313243
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java
Next
Last
Clone Instance
1
Line Count
11
Source Line
205
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java

/**
 * Interface TestListener for JUnit > 3.4.
 *
 * <p>A Test failed.
 * @param test a test
 * @param t    the assertion failed by the test
 */
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);
}


Next
Previous
Clone Instance
2
Line Count
13
Source Line
218
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java

/**
 * Interface TestListener for JUnit &gt; 3.4.
 *
 * <p>A Test failed.
 * @param test the test.
 * @param t  the assertion that failed.
 */
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);
}


First
Previous
Clone Instance
3
Line Count
13
Source Line
243
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java

/**
 * Interface TestListener for JUnit &gt; 3.4.
 *
 * <p>A Test failed.
 * @param test the test.
 * @param t the assertion.
 */
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 AbstractionParameter Count: 2Parameter Bindings

/**
     * Interface TestListener for JUnit &gt; 3.4.
     *
     * <p>A Test failed.
     * @param test the test.
     * @param t  the assertion that failed.
     */
/**
     * Interface TestListener for JUnit &gt; 3.4.
     *
     * <p>A Test failed.
     * @param test a test
     * @param t    the assertion failed by the test
     */
/**
     * Interface TestListener for JUnit &gt; 3.4.
     *
     * <p>A Test failed.
     * @param test the test.
     * @param t the assertion.
     */
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.
     */
/**
     * A test caused an error.
     * @param test  a test
     * @param error the error thrown by the test
     */
/**
     * Interface TestListener.
     *
     * <p>An error occurred while running the test.
     * @param test the test.
     * @param t the error.
     */
public void addError(Test test, Throwable  [[#variable111fc1e0]]) {
  formatError( [[#variablefe55fe0]], test,  [[#variable111fc1e0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#111fc1e0]]
error 
12[[#111fc1e0]]
t 
13[[#111fc1e0]]
t 
21[[#fe55fe0]]
"\tCaused an ERROR" 
22[[#fe55fe0]]
"\tCaused an ERROR" 
23[[#fe55fe0]]
ERROR