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 testNoop() { executeTarget("noop"); } public void testCurrent() { executeTarget("current"); } public void testFaster() { executeTarget("faster"); } public void testSlower() { executeTarget("slower"); } public void testTooSlow() { expectBuildExceptionContaining( "too_slow","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/optional/EchoPropertiesTest.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 testEchoPrefix() throws Exception {
1
void test
2
        testEchoPrefixVarious("testEchoPrefix");
3
    }
4
    public void testEchoPrefixAsPropertyset() throws Exception {
5
        testEchoPrefixVarious("testEchoPrefixAsPropertyset");
6
    }
7
    public void testEchoPrefixAsNegatedPropertyset() throws Exception {
8
        testEchoPrefixVarious("testEchoPrefixAsNegatedPropertyset");
9
    }
10
    public void testEchoPrefixAsDoublyNegatedPropertyset() throws Exception {
11
        testEchoPrefixVarious("testEchoPrefixAsDoublyNegatedPropertyset");
12
    }
13
    public void testWithPrefixAndRegex() throws Exception
2
Noop() {
3
        executeTarget("noop");
4
    }
5
    public void testCurrent() {
6
        executeTarget("current");
7
    }
8
    public void testFaster() {
9
        executeTarget("faster");
10
    }
11
    public void testSlower() {
12
        executeTarget("slower");
13
    }
14
 {
14
    public void testTooSlow() {
15
        expectSpecificBuildException("testWithPrefixAndRegex",
15
        expectBuildException
16
                "The target must fail with prefix and regex attributes set",
17
                "Please specify either prefix or regex, but not both
16
Containing(
18
");
17
                "too_slow","out of range","out of the range 1-10");
19
    }
18
    }
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