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");
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");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/DotnetTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/EchoPropertiesTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testCscReferences() throws Exception {
1
void testEchoPrefix() throws Exception {
2
        executeTarget("testCscReferences");
2
        
3
    }
4
    /**
5
     * A unit test for JUnit
6
     */
7
    public void testCscResources() throws Exception {
8
        executeTarget("testCSCResources");
9
    }
10
    /**
11
     * test we can assemble
12
     */
13
    public void testILASM() throws Exception {
14
        executeTarget("testILASM");
15
    }
16
    /**
17
     * test we can disassemble
3
testEchoPrefixVarious("testEchoPrefix");
4
    }
5
    public void testEchoPrefixAsPropertyset() throws Exception {
6
        testEchoPrefixVarious("testEchoPrefixAsPropertyset");
7
    }
8
    public void testEchoPrefixAsNegatedPropertyset() throws Exception {
9
        testEchoPrefixVarious("testEchoPrefixAsNegatedPropertyset");
18
     */
10
    }
19
    public void testILDASM() throws Exception {
11
    public void test
20
        executeTarget("testILDASM");
21
    }
22
    /**
23
     * test we can disassemble
12
EchoPrefixAsDoublyNegatedPropertyset() throws Exception {
13
        testEchoPrefixVarious("testEchoPrefixAsDoublyNegatedPropertyset");
24
     */
14
    }
25
    public void testILDASM_empty() throws Exception {
15
    public void testWithPrefixAndRegex() throws Exception {
26
        expectBuildExceptionContaining("testILDASM_empty",
16
        expectSpecificBuildException
27
                "parameter validation",
28
                "invalid
17
("testWithPrefixAndRegex",
18
                "The target must fail with prefix and regex attributes set",
29
");
19
                "Please specify either prefix or regex, but not both");
30
    
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