void tearDown() { executeTarget("teardown"); } /** * A unit test for JUnit */ public void testCatchNoDtd() throws Exception { expectBuildExceptionContaining("testCatchNoDtd", "expected failure", "Fatal error during transformation"); } /** * A unit test for JUnit */ public void testCatalog() throws Exception { executeTarget("testCatalog"); } public void testOutputProperty() throws Exception { executeTarget("testOutputProperty");
void testILDASM() throws Exception { executeTarget("testILDASM"); } /** * test we can disassemble */ public void testILDASM_empty() throws Exception { expectBuildExceptionContaining("testILDASM_empty", "parameter validation", "invalid"); } /** * test we can handle jsharp (if found) */ public void testJsharp() throws Exception { executeTarget("jsharp"); } /** * test we can handle jsharp (if found) */ public void testResponseFile() throws Exception { executeTarget("testCSCresponseFile");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XsltTest.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 tearDown() {
1
void testILDASM() throws Exception {
2
        executeTarget("teardown");
2
        executeTarget("testILDASM");
3
    }
3
    }
4
    /**
4
    /**
5
     * A unit test for JUnit
5
     * test we can disassemble
6
     */
6
     */
7
    public void testCatchNoDtd() throws Exception {
7
    public void testILDASM_empty() throws Exception {
8
        expectBuildExceptionContaining("testCatchNoDtd",
8
        expectBuildExceptionContaining("test
9
                                       "expected failure",
10
                                       "Fatal error during transformation");
11
    }
12
    /**
13
     * A unit test for JUnit
9
ILDASM_empty",
10
                "parameter validation",
11
                "invalid");
12
    }
13
    /**
14
     * test we can handle jsharp (if found)
14
     */
15
     */
15
    public void testCatalog() throws Exception {
16
    public void testJsharp() throws Exception {
16
         executeTarget("testCatalog");
17
        executeTarget("jsharp");
18
    }
19
    /**
20
     * test we can handle jsharp (if found)
17
    }
21
    
22
 */
18
    public void testOutputProperty() throws Exception {
23
    public void testResponseFile() throws Exception {
19
      executeTarget("testOutputProperty");
24
        executeTarget("testCSCresponseFile");
20
    
25
    
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