Manifest.Section mainSection = manifest.getMainSection(); String classpath = mainSection.getAttributeValue("class-path"); assertEquals("Class-Path attribute was not set correctly - ", "fubar", classpath);
Manifest.Section mainSection = manifest.getMainSection(); String classpath = mainSection.getAttributeValue("class-path"); assertEquals("Class-Path attribute was not set correctly - ", "Test1 Test2 Test3 Test4", 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 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);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
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. {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();
    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 - ", "fubar", classpath);
    5
    assertEquals("Class-Path attribute was not set correctly - ", "Test1 Test2 Test3 Test4", classpath);
    Differences
    Expression1Expression2Difference
    "fubar""Test1 Test2 Test3 Test4"LITERAL_VALUE_MISMATCH
    5
    assertEquals("Class-Path attribute was not set correctly - ", "Test1 Test2 Test3 Test4", classpath);
    Precondition Violations (0)
    Row Violation