assertEquals(localize("/1/2/3/4"), FILE_UTILS.resolveFile(new File(localize("/1/2/3")), "./.\\4").getPath());
assertEquals(localize("/1/2/3/4"), FILE_UTILS.resolveFile(new File(localize("/1/2/3")), "..\\3\\4").getPath());
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/FileUtilsTest.java
Method name: void testResolveFile() Method name: void testResolveFile()
Number of AST nodes: 1 Number of AST nodes: 1
1
assertEquals(localize("/1/2/3/4"),
1
assertEquals(localize("/1/2/3/4"),
2
                     FILE_UTILS.resolveFile(new File(localize("/1/2/3")), "./.\\4").getPath());
2
                     FILE_UTILS.resolveFile(new File(localize("/1/2/3")), "..\\3\\4").getPath());
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 in the same method
Number of node comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    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
    34
    assertEquals(localize("/1/2/3/4"), FILE_UTILS.resolveFile(new File(localize("/1/2/3")), "./.\\4").getPath());
    34
    assertEquals(localize("/1/2/3/4"), FILE_UTILS.resolveFile(new File(localize("/1/2/3")), "./.\\4").getPath());
    36
    assertEquals(localize("/1/2/3/4"), FILE_UTILS.resolveFile(new File(localize("/1/2/3")), "..\\3\\4").getPath());
    Differences
    Expression1Expression2Difference
    "./.\\4""..\\3\\4"LITERAL_VALUE_MISMATCH
    36
    assertEquals(localize("/1/2/3/4"), FILE_UTILS.resolveFile(new File(localize("/1/2/3")), "..\\3\\4").getPath());
    Precondition Violations (0)
    Row Violation