executeTarget("testDateCheck"); String log = getLog(); assertTrue( "Expecting message ending with 'asf-logo.gif.bz2 is up to date.' but got '" + log + "'", log.endsWith("asf-logo.gif.bz2 is up to date."));
executeTarget("testDateCheck"); String log = getLog(); assertTrue( "Expecting message ending with 'asf-logo.gif.gz is up to date.' but got '" + log + "'", log.endsWith("asf-logo.gif.gz is up to date."));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/BZip2Test.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/GzipTest.java
Method name: void testDateCheck() Method name: void testDateCheck()
Number of AST nodes: 3 Number of AST nodes: 3
1
executeTarget("testDateCheck");
1
executeTarget("testDateCheck");
2
        String log = getLog();
2
        String log = getLog();
3
        assertTrue(
3
        assertTrue(
4
            "Expecting message ending with 'asf-logo.gif.bz2 is up to date.' but got '" + log + "'",
4
            "Expecting message ending with 'asf-logo.gif.gz is up to date.' but got '" + log + "'",
5
            log.endsWith("asf-logo.gif.bz2 is up to date."));
5
            log.endsWith("asf-logo.gif.gz is up to date."));
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 different classes having the same super 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
    1
    executeTarget("testDateCheck");
    1
    executeTarget("testDateCheck");
    2
    String log = getLog();
    2
    String log = getLog();
    3
    assertTrue("Expecting message ending with 'asf-logo.gif.bz2 is up to date.' but got '" + log + "'", log.endsWith("asf-logo.gif.bz2 is up to date."));
    3
    assertTrue("Expecting message ending with 'asf-logo.gif.bz2 is up to date.' but got '" + log + "'", log.endsWith("asf-logo.gif.bz2 is up to date."));
    3
    assertTrue("Expecting message ending with 'asf-logo.gif.gz is up to date.' but got '" + log + "'", log.endsWith("asf-logo.gif.gz is up to date."));
    Differences
    Expression1Expression2Difference
    "Expecting message ending with 'asf-logo.gif.bz2 is up to date.' but got '""Expecting message ending with 'asf-logo.gif.gz is up to date.' but got '"LITERAL_VALUE_MISMATCH
    "asf-logo.gif.bz2 is up to date.""asf-logo.gif.gz is up to date."LITERAL_VALUE_MISMATCH
    3
    assertTrue("Expecting message ending with 'asf-logo.gif.gz is up to date.' but got '" + log + "'", log.endsWith("asf-logo.gif.gz is up to date."));
    Precondition Violations (0)
    Row Violation