Manifest.Section mainSection = manifest.getMainSection(); String classpath = mainSection.getAttributeValue("class-path"); assertEquals("Class-Path attribute was not set correctly - ", "Test1 Test2 Test3 Test4", classpath);
Manifest.Section mainSection = manifest.getMainSection(); String classpath = mainSection.getAttributeValue("class-path"); assertEquals("Class-Path attribute was not set correctly - ", LONG_LINE, classpath);
Clone fragments detected by clone detection tool
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 test14() Method name: void testLongLine()
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 - ",
3
        assertEquals("Class-Path attribute was not set correctly - ",
4
            "Test1 Test2 Test3 Test4", classpath);
4
            LONG_LINE, classpath);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    Manifest.Section mainSection = manifest.getMainSection();
    9
    Manifest.Section mainSection = manifest.getMainSection();
    4
    String classpath = mainSection.getAttributeValue("class-path");
    10
    String classpath = mainSection.getAttributeValue("class-path");
    5
    assertEquals("Class-Path attribute was not set correctly - ", "Test1 Test2 Test3 Test4", classpath);
    5
    assertEquals("Class-Path attribute was not set correctly - ", "Test1 Test2 Test3 Test4", classpath);
    11
    assertEquals("Class-Path attribute was not set correctly - ", LONG_LINE, classpath);
    Differences
    Expression1Expression2Difference
    "Test1 Test2 Test3 Test4"LONG_LINETYPE_COMPATIBLE_REPLACEMENT
    11
    assertEquals("Class-Path attribute was not set correctly - ", LONG_LINE, classpath);
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables , while Clone fragment #2 returns variables mainSection