Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 3 | 2 | 0.953 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 205 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java |
2 | 13 | 218 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java |
3 | 13 | 243 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.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); } |
| |||||
/** * Interface TestListener for JUnit > 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); } |
| |||||
/** * Interface TestListener for JUnit > 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); } |
| |||
/** * Interface TestListener for JUnit > 3.4. * * <p>A Test failed. * @param test the test. * @param t the assertion that failed. */ /** * Interface TestListener for JUnit > 3.4. * * <p>A Test failed. * @param test a test * @param t the assertion failed by the test */ /** * Interface TestListener for JUnit > 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#111fc1e0]] | error |
1 | 2 | [[#111fc1e0]] | t |
1 | 3 | [[#111fc1e0]] | t |
2 | 1 | [[#fe55fe0]] | "\tCaused an ERROR" |
2 | 2 | [[#fe55fe0]] | "\tCaused an ERROR" |
2 | 3 | [[#fe55fe0]] | ERROR |