void testNoTrimStringCondition() { executeTarget("testNoTrimStringCondition"); } public void testStringFile() { expectBuildExceptionContaining("testStringFile", "should fail", "incompatible"); } public void testTrimFile() { expectBuildExceptionContaining("testTrimFile", "should fail", "string length function only");
void testSlower() { executeTarget("slower"); } public void testTooSlow() { expectBuildExceptionContaining( "too_slow","out of range","out of the range 1-10"); } public void testTooFast() { expectBuildExceptionContaining( "too_fast", "out of range", "out of the range 1-10");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/LengthTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/NiceTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testNoTrimStringCondition() {
1
void testSlower() {
2
        executeTarget("testNoTrimStringCondition");
2
        executeTarget("slower");
3
    }
3
    }
4
    public void testStringFile() {
4
    public void testTooSlow() {
5
        expectBuildExceptionContaining("testStringFile",
5
        expectBuildExceptionContaining(
6
            "should fail", "incompatible
7
");
6
                "too_slow","out of range","out of the range 1-10");
8
    }
7
    }
9
    public void testTrimFile() {
8
    public void testTooFast() {
10
        expectBuildExceptionContaining("testTrimFile",
9
        expectBuildExceptionContaining(
11
            "should fail", "string length function only
12
");
10
                "too_fast", "out of range", "out of the range 1-10");
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