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 testCscReferences() throws Exception { executeTarget("testCscReferences"); } /** * A unit test for JUnit */ public void testCscResources() throws Exception { executeTarget("testCSCResources"); } /** * test we can assemble */ public void testILASM() throws Exception { executeTarget("testILASM"); } /** * test we can disassemble */ public void testILDASM() throws Exception { executeTarget("testILDASM"); } /** * test we can disassemble */ public void testILDASM_empty() throws Exception { expectBuildExceptionContaining("testILDASM_empty", "parameter validation", "invalid"); }
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/optional/DotnetTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testEchoPrefix() throws Exception {
1
void testCscReferences() throws Exception {
2
        testEchoPrefixVarious("testEchoPrefix");
2
        
3
    }
4
    public void testEchoPrefixAsPropertyset() throws Exception {
5
        testEchoPrefixVarious("testEchoPrefixAsPropertyset");
6
    }
7
    public void testEchoPrefixAsNegatedPropertyset() throws Exception {
8
        testEchoPrefixVarious("testEchoPrefixAsNegatedPropertyset");
3
executeTarget("testCscReferences");
4
    }
5
    /**
6
     * A unit test for JUnit
7
     */
8
    public void testCscResources() throws Exception {
9
        executeTarget("testCSCResources");
10
    }
11
    /**
12
     * test we can assemble
13
     */
14
    public void testILASM() throws Exception {
15
        executeTarget("testILASM");
16
    }
17
    /**
18
     * test we can disassemble
9
    }
19
    
20
 */
10
    public void testEchoPrefixAsDoublyNegatedPropertyset() throws Exception {
21
    public void test
11
        testEchoPrefixVarious("testEchoPrefixAsDoublyNegatedPropertyset");
22
ILDASM() throws Exception {
23
        executeTarget("testILDASM");
24
    }
25
    /**
26
     * test we can disassemble
12
    }
27
    
28
 */
13
    public void testWithPrefixAndRegex() throws Exception {
29
    public void testILDASM_empty() throws Exception {
14
        expectSpecificBuildException("testWithPrefixAndRegex",
30
        expectBuildException
15
                "The target must fail with prefix and regex attributes set",
16
                "Please specify either prefix or regex, but not both
31
Containing("testILDASM_empty",
32
                "parameter validation",
17
");
33
                "invalid");
18
    }
34
    }
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