void testEchoPrefix() throws Exception { testEchoPrefixVarious("testEchoPrefix"); } public void testEchoPrefixAsPropertyset() throws Exception { testEchoPrefixVarious("testEchoPrefixAsPropertyset"); } public void testEchoPrefixAsNegatedPropertyset() throws Exception { testEchoPrefixVarious("testEchoPrefixAsNegatedPropertyset"); } public void testEchoPrefixAsDoublyNegatedPropertyset() throws Exception { testEchoPrefixVarious("testEchoPrefixAsDoublyNegatedPropertyset"); } public void testWithPrefixAndRegex() throws Exception { expectSpecificBuildException("testWithPrefixAndRegex", "The target must fail with prefix and regex attributes set", "Please specify either prefix or regex, but not both"); }
void testTrimString() { executeTarget("testTrimString"); } public void testTrimStringCondition() { executeTarget("testTrimStringCondition"); } public void testNoTrimString() { executeTarget("testNoTrimString"); } public void testNoTrimStringCondition() { executeTarget("testNoTrimStringCondition"); } public void testStringFile() { expectBuildExceptionContaining("testStringFile", "should fail", "incompatible"); }
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/LengthTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testEchoPrefix() throws Exception {
1
void test
2
        testEchoPrefixVarious("testEchoPrefix");
3
    }
4
    public void testEchoPrefixAsPropertyset() throws Excep
2
TrimString() {
3
        executeTarget("testTrimString");
4
    }
5
tion {
5
    public void testTrimStringCondition() {
6
        testEchoPrefixVarious("testEchoPrefixAsPropertyset");
6
        
7
    }
8
    public void testEchoPrefixAsNegatedPropertyset() throws Exception {
9
        testEchoPrefixVarious("testEchoPrefixAsNegatedPropertyset");
10
    }
11
    public void testEchoPrefixAsDoublyNegatedPropertyset() throws Excep
7
executeTarget("testTrimStringCondition");
8
    }
9
    public void testNoTrimString() {
10
        executeTarget("testNoTrimString");
11
    }
12
tion {
12
    public void testNoTrimStringCondition() {
13
        testEchoPrefixVarious("testEchoPrefixAsDoublyNegatedPropertyset");
13
        
14
    }
15
    public void testWithPrefixAndRegex() throws Exception
14
executeTarget("testNoTrimStringCondition");
15
    }
16
 {
16
    public void testStringFile() {
17
        expectSpecificBuildException("testWithPrefixAndRegex",
17
        expectBuildException
18
                "The target must fail with prefix and regex attributes set",
19
                "Please specify either prefix or regex, but not both
18
Containing("testStringFile",
20
");
19
            "should fail", "incompatible");
21
    }
20
    }
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