void testReadBadFileFail() { expectBuildExceptionContaining( "testReadBadFile", "srcfile is a directory", "srcfile is a directory!" ); } public void testReadBadFileNoFail() { expectLog( "testReadBadFileNoFail", "srcfile is a directory!" ); } public void testEchoToBadFile() { expectBuildExceptionContaining( "testEchoToBadFile", "destfile is a directory", "destfile is a directory!" );
void testShortcut() { expectPropertySet("shortcut","shortcut","set"); } public void testUnset() { expectPropertyUnset("dontset","dontset"); } public void testSetValue() { expectPropertySet("setvalue","setvalue","woowoo");
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/ConditionTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testReadBadFileFail() {
1
void testShortcut() {
2
        expectBuildExceptionContaining( "testReadBadFile",
2
        expect
3
            "srcfile is a directory", "srcfile is a directory!" );
3
PropertySet("shortcut","shortcut","set");
4
    }
4
    }
5
    public void testReadBadFileNoFail() {
5
    public void testUnset() {
6
        expectLog( "testReadBadFileNoFail", "srcfile is a directory!" );
6
        expectPropertyUnset("dontset","dontset");
7
    }
7
    }
8
    public void testEchoToBadFile() {
8
    public void testSetValue() {
9
        expectBuildExceptionContaining( "testEchoToBadFile",
9
        expect
10
            "destfile is a directory", "destfile is a directory!" );
10
PropertySet("setvalue","setvalue","woowoo");
11
    
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