void testTrimFile() { expectBuildExceptionContaining("testTrimFile", "should fail", "string length function only"); } public void testImmutable() { executeTarget("testImmutable"); } public void testZipFileSet() { executeTarget("testZipFileSet"); } public void testZipFileSetCondition() { executeTarget("testZipFileSetCondition");
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"); } public void testFactory() throws Exception { executeTarget("testFactory");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/LengthTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XsltTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testTrimFile() {
1
void testCatchNoDtd() throws Exception {
2
        expectBuildExceptionContaining("testTrimFile",
2
        expectBuildExceptionContaining("testCatchNoDtd",
3
            "should fail", "string length function only");
3
            
4
    }
4
                           "expected failure",
5
                                       "Fatal error during transformation");
6
    }
7
    /**
8
     * A unit test for JUnit
9
     */
5
    public void testImmutable() {
10
    public void testCatalog() throws Exception {
6
        executeTarget("testImmutable");
11
         executeTarget("testCatalog");
7
    }
12
    }
8
    public void testZipFileSet() {
13
    public void test
9
  
14
OutputProperty() throws Exception {
10
      executeTarget("testZipFileSet");
15
      executeTarget("testOutputProperty");
11
    }
16
    }
12
    public void testZipFileSetCondition() {
17
    public void testFactory() throws Exception {
13
        executeTarget("testZipFileSetCondition");
18
        executeTarget("testFactory");
14
    
19
    
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