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"); } public void testAttribute() throws Exception { executeTarget("testAttribute"); } public void testXMLWithEntitiesInNonAsciiPath() throws Exception { executeTarget("testXMLWithEntitiesInNonAsciiPath");
void testNolanguage() { expectBuildExceptionContaining("testNolanguage", "Absence of language attribute not detected", "script language must be specified"); } public void testMacro() { executeTarget("testMacro"); } public void testClearByDefault() { executeTarget("testClearByDefault"); } public void testValueWorks() { executeTarget("testValueWorks"); } public void testSetWorks() { executeTarget("testSetWorks"); } public void testClearWorks() { executeTarget("testClearWorks");
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/types/optional/ScriptConditionTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testCatchNoDtd() throws Exception {
1
void testNolanguage() {
2
        expectBuildExceptionContaining("testCatchNoDtd",
2
        expectBuildExceptionContaining("testNolanguage",
3
                                       "expected failure",
3
                
4
                                       "Fatal error during transformation");
5
    }
6
    /**
7
     * A unit test for JUnit
8
     */
9
    public void testCatalog() throws Exception
4
"Absence of language attribute not detected",
5
                "script language must be specified");
6
    }
10
 {
7
    public void testMacro() {
11
         executeTarget("testCatalog");
8
        executeTarget("testMacro");
12
    }
9
    }
13
    public void testOutputProperty() throws Exception {
10
    public void testClearByDefault() {
14
      executeTarget("testOutputProperty");
11
        executeTarget("testClearByDefault");
15
    }
12
    }
16
    public void testFactory() throws Exception {
13
    public void testValueWorks() {
17
        executeTarget("testFactory");
14
        executeTarget("testValueWorks");
18
    }
15
    }
19
    public void testAttribute() throws Exception {
16
    public void testSetWorks() {
20
        executeTarget("testAttribute");
17
        executeTarget("testSetWorks");
21
    }
18
    }
22
    public void testXMLWithEntitiesInNonAsciiPath() throws Exception {
19
    public void testClearWorks() {
23
        executeTarget("testXMLWithEntitiesInNonAsciiPath");
20
        executeTarget("testClearWorks");
24
    
21
    
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