CloneSet349


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5230.965method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15509
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
25535
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
Next
Last
Clone Instance
1
Line Count
5
Source Line
509
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java

/**
 * Interface TestListener for JUnit <= 3.4.
 *
 * <p>A Test failed.
 * @param test the test.
 * @param t    the exception thrown by the test.
 */
public void addFailure(Test test, Throwable t) {
  String testName = JUnitVersionHelper.getTestCaseName(test);
  logTestListenerEvent("addFailure(" + testName + ", " + t.getMessage() + ")");
  if (haltOnFailure) {
    res.stop();
  }
}


First
Previous
Clone Instance
2
Line Count
5
Source Line
535
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java

/**
 * Interface TestListener.
 *
 * <p>An error occurred while running the test.
 * @param test the test.
 * @param t    the error thrown by the test.
 */
public void addError(Test test, Throwable t) {
  String testName = JUnitVersionHelper.getTestCaseName(test);
  logTestListenerEvent("addError(" + testName + ", " + t.getMessage() + ")");
  if (haltOnError) {
    res.stop();
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Interface TestListener.
     *
     * <p>An error occurred while running the test.
     * @param test the test.
     * @param t    the error thrown by the test.
     */
/**
     * Interface TestListener for JUnit &lt;= 3.4.
     *
     * <p>A Test failed.
     * @param test the test.
     * @param t    the exception thrown by the test.
     */
public void [[#variable100f0340]](Test test, Throwable t) {
  String testName = JUnitVersionHelper.getTestCaseName(test);
  logTestListenerEvent( [[#variable100f02a0]] + testName + ", " + t.getMessage() + ")");
  if ( [[#variable100f01a0]]) {
    res.stop();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#100f0340]]
addFailure 
12[[#100f0340]]
addError 
21[[#100f02a0]]
"addFailure(" 
22[[#100f02a0]]
"addError(" 
31[[#100f01a0]]
haltOnFailure 
32[[#100f01a0]]
haltOnError