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/PlainJUnitResultFormatter.java | |||
Method name: void endTestSuite(JUnitTest)
|
Method name: void endTestSuite(JUnitTest)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (systemOutput != null && systemOutput.length() > 0) {↵ | 1 | if (systemOutput != null && systemOutput.length() > 0) {↵ | |
2 | sb.append("------------- Standard Output ---------------")↵ | 2 | sb.append("------------- Standard Output ---------------")↵ | |
3 | .append(StringUtils.LINE_SEP)↵ | 3 | .append(StringUtils.LINE_SEP)↵ | |
4 | .append(systemOutput)↵ | 4 | .append(systemOutput)↵ | |
5 | .append("------------- ---------------- ---------------")↵ | 5 | .append("------------- ---------------- ---------------")↵ | |
6 | .append(StringUtils.LINE_SEP);↵ | 6 | .append(StringUtils.LINE_SEP);↵ | |
7 | }↵ | 7 | }↵ | |
8 | if (systemError != null && systemError.length() > 0) {↵ | 8 | if (systemError != null && systemError.length() > 0) {↵ | |
9 | sb.append("------------- Standard Error -----------------")↵ | 9 | sb.append("------------- Standard Error -----------------")↵ | |
10 | .append(StringUtils.LINE_SEP)↵ | 10 | .append(StringUtils.LINE_SEP)↵ | |
11 | .append(systemError)↵ | 11 | .append(systemError)↵ | |
12 | .append("------------- ---------------- ---------------")↵ | 12 | .append("------------- ---------------- ---------------")↵ | |
13 | .append(StringUtils.LINE_SEP);↵ | 13 | .append(StringUtils.LINE_SEP);↵ | |
14 | } | 14 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.8 |
Clones location | Clones are in different classes |
Number of node comparisons | 13 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.2 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
12 | if (systemOutput != null && systemOutput.length() > 0) | 11 | if (systemOutput != null && systemOutput.length() > 0) | |
13 | sb.append("------------- Standard Output ---------------").append(StringUtils.LINE_SEP).append(systemOutput).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP); | 12 | sb.append("------------- Standard Output ---------------").append(StringUtils.LINE_SEP).append(systemOutput).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP); | |
14 | if (systemError != null && systemError.length() > 0) | 13 | if (systemError != null && systemError.length() > 0) | |
15 | sb.append("------------- Standard Error -----------------").append(StringUtils.LINE_SEP).append(systemError).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP); | 14 | sb.append("------------- Standard Error -----------------").append(StringUtils.LINE_SEP).append(systemError).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP); |
Row | Violation |
---|