void testMissingFileIgnore() { expectLogContaining("testMissingFileIgnore", "Warning: Could not find file "); } public void testMissingFileBail() { expectBuildException("testMissingFileBail", "not-there doesn't exist"); assertTrue(getBuildException().getMessage() .startsWith("Warning: Could not find file "));
void testMissingDirIgnore() { expectLogContaining("testMissingDirIgnore", "Warning: "); } public void testMissingDirBail() { expectBuildException("testMissingDirBail", "not-there doesn't exist"); assertTrue(getBuildException().getMessage().endsWith(" not found."));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/CopyTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/CopyTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testMissingFileIgnore() {
1
void testMissingDirIgnore() {
2
        expectLogContaining("testMissingFileIgnore",
2
        expectLogContaining("testMissingDirIgnore",
3
                            "Warning: Could not find file ");
3
 "Warning: ");
4
    }
4
    }
5
    public void testMissingFileBail() {
5
    public void testMissingDirBail() {
6
        expectBuildException("testMissingFileBail", "not-there doesn't exist");
6
        expectBuildException("testMissingDirBail", "not-there doesn't exist");
7
        assertTrue(getBuildException().getMessage()
7
        assertTrue(getBuildException().getMessage()
8
                   .startsWith("Warning: Could not find file "));
8
.endsWith(" not found."));
9
    
9
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0