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");
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");
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
4
"Absence of language attribute not detected",
5
                "script language must be specified");
8
     */
6
    }
9
    public void testCatalog() throws Exception {
7
    public void testMacro() {
10
         executeTarget("testCatalog");
8
        executeTarget("testMacro");
11
    }
9
    }
12
    public void testOutputProperty() throws Exception {
10
    public void testClearByDefault() {
13
      executeTarget("testOutputProperty");
11
        executeTarget("testClearByDefault");
14
    }
12
    }
15
    public void testFactory() throws Exception {
13
    public void testValueWorks() {
16
        executeTarget("testFactory");
14
        executeTarget("testValueWorks");
17
    
15
    
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