File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java | |||
Method name: void test8()
|
Method name: void test14()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | Manifest.Section mainSection = manifest.getMainSection();↵ | 1 | Manifest.Section mainSection = manifest.getMainSection();↵ | |
2 | String classpath = mainSection.getAttributeValue("class-path");↵ | 2 | String classpath = mainSection.getAttributeValue("class-path");↵ | |
3 | assertEquals("Class-Path attribute was not set correctly - ", "fubar↵ | 3 | assertEquals("Class-Path attribute was not set correctly - ",↵ | |
4 | ", classpath); | 4 | "Test1 Test2 Test3 Test4", classpath); | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | Manifest.Section mainSection = manifest.getMainSection(); | 3 | Manifest.Section mainSection = manifest.getMainSection(); | |||||||||||
4 | String classpath = mainSection.getAttributeValue("class-path"); | 4 | String classpath = mainSection.getAttributeValue("class-path"); | |||||||||||
5 | assertEquals("Class-Path attribute was not set correctly - ", "fubar", classpath); |
| 5 | assertEquals("Class-Path attribute was not set correctly - ", "Test1 Test2 Test3 Test4", classpath); |
Row | Violation |
---|