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/BriefJUnitResultFormatter.java | |||
Method name: void endTestSuite(JUnitTest)
|
Method name: void endTestSuite(JUnitTest)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | sb.append(StringUtils.LINE_SEP);↵ | 1 | sb.append(StringUtils.LINE_SEP);↵ | |
2 | // append the err and output streams to the log↵ | 2 | // append the err and output streams to the log↵ | |
3 | if (systemOutput != null && systemOutput.length() > 0) {↵ | 3 | if (systemOutput != null && systemOutput.length() > 0) {↵ | |
4 | sb.append("------------- Standard Output ---------------")↵ | 4 | sb.append("------------- Standard Output ---------------")↵ | |
5 | .append(StringUtils.LINE_SEP)↵ | 5 | .append(StringUtils.LINE_SEP)↵ | |
6 | .append(systemOutput)↵ | 6 | .append(systemOutput)↵ | |
7 | .append("------------- ---------------- ---------------")↵ | 7 | .append("------------- ---------------- ---------------")↵ | |
8 | .append(StringUtils.LINE_SEP);↵ | 8 | .append(StringUtils.LINE_SEP);↵ | |
9 | }↵ | 9 | }↵ | |
10 | if (systemError != null && systemError.length() > 0) {↵ | 10 | if (systemError != null && systemError.length() > 0) {↵ | |
11 | sb.append("------------- Standard Error -----------------")↵ | 11 | sb.append("------------- Standard Error -----------------")↵ | |
12 | .append(StringUtils.LINE_SEP)↵ | 12 | .append(StringUtils.LINE_SEP)↵ | |
13 | .append(systemError)↵ | 13 | .append(systemError)↵ | |
14 | .append("------------- ---------------- ---------------")↵ | 14 | .append("------------- ---------------- ---------------")↵ | |
15 | .append(StringUtils.LINE_SEP);↵ | 15 | .append(StringUtils.LINE_SEP);↵ | |
16 | } | 16 |
| |
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.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
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) | 2.7 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
10 | sb.append(StringUtils.LINE_SEP); | 11 | sb.append(StringUtils.LINE_SEP); | |
11 | if (systemOutput != null && systemOutput.length() > 0) | 12 | if (systemOutput != null && systemOutput.length() > 0) | |
12 | sb.append("------------- Standard Output ---------------").append(StringUtils.LINE_SEP).append(systemOutput).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP); | 13 | sb.append("------------- Standard Output ---------------").append(StringUtils.LINE_SEP).append(systemOutput).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP); | |
13 | if (systemError != null && systemError.length() > 0) | 14 | if (systemError != null && systemError.length() > 0) | |
14 | sb.append("------------- Standard Error -----------------").append(StringUtils.LINE_SEP).append(systemError).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP); | 15 | sb.append("------------- Standard Error -----------------").append(StringUtils.LINE_SEP).append(systemError).append("------------- ---------------- ---------------").append(StringUtils.LINE_SEP); |
Row | Violation |
---|