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 testExceptingFork() { expectLogContaining("testExceptingFork", "Java Result:"); } public void testExceptingFoe() { expectBuildExceptionContaining("testExceptingFoe", "passes exception through", "Exception raised inside called program"); } public void testExceptingFoeFork() { expectBuildExceptionContaining("testExceptingFoeFork", "exceptions turned into error codes", "Java returned:");
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/JavaTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testReadBadFileNoFail() {
1
void testExceptingFork() {
2
        expectLog( "testReadBadFileNoFail", "srcfile is a directory!" 
2
        expectLogContaining("testExceptingFork",
3
);
3
                            "Java Result:");
4
    }
4
    }
5
    public void testEchoToBadFile() {
5
    public void testExceptingFoe() {
6
        expectBuildExceptionContaining( "testEchoToBadFile",
6
        expectBuildExceptionContaining("testExceptingFoe",
7
            "destfile is a directory", "destfile is a directory!" 
7
            "passes exception through",
8
);
8
            "Exception raised inside called program");
9
    }
9
    }
10
    public void testEchoToBadFileFail() {
10
    public void testExceptingFoeFork() {
11
        expectBuildExceptionContaining( "testEchoToBadFileFail",
11
        expectBuildExceptionContaining("testE
12
            "destfile is a directory", "destfile is a directory!" 
12
xceptingFoeFork",
13
            "exceptions turned into error codes",
13
);
14
            "Java returned:");
14
    
15
    
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