void testReadBadFileNoFail() { expectLog( "testReadBadFileNoFail", "srcfile is a directory!" ); } public void testEchoToBadFile() { expectBuildExceptionContaining( "testEchoToBadFile", "destfile is a directory", "destfile is a directory!" ); } public void testEchoToBadFileFail() { expectBuildExceptionContaining( "testEchoToBadFileFail", "destfile is a directory", "destfile is a directory!" );
void testAntTypeTest() { expectLog("antTypeTest", ""); } public void testCorrectTaskNameBadAttr() { expectBuildExceptionContaining( "correct_taskname_badattr", "attribute message", "javac doesn't support the"); } public void testCorrectTaskNameBadEl() { expectBuildExceptionContaining( "correct_taskname_badel", "element message", "javac doesn't support the");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/EchoPropertiesTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/PreSetDefTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testReadBadFileNoFail() {
1
void testAntTypeTest() {
2
        expectLog( "testReadBadFileNoFail", "srcfile is a directory!" );
2
        expectLog("antTypeTest", "");
3
    }
3
    }
4
    public void testEchoToBadFile() {
4
    public void testCorrectTaskNameBadAttr() {
5
        expectBuildExceptionContaining( "testEchoToBadFile",
5
        expectBuildExceptionContaining(
6
            "destfile is a directory", "destfile is a directory!" 
7
);
6
            "correct_taskname_badattr", "attribute message", "javac doesn't support the");
8
    }
7
    }
9
    public void testEchoToBadFileFail() {
8
    public void testCorrectTaskNameBadEl() {
10
        expectBuildExceptionContaining( "testEchoToBadFileFail",
9
        expectBuildExceptionContaining(
11
            "destfile is a directory", "destfile is a directory!" 
12
);
10
            "correct_taskname_badel", "element message", "javac doesn't support the");
13
    
11
    
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