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