void testNolanguage() { expectBuildExceptionContaining("testNolanguage", "Absence of language attribute not detected", "script language must be specified"); } public void testSelectionSetByDefault() { executeTarget("testSelectionSetByDefault"); } public void testSelectionSetWorks() { executeTarget("testSelectionSetWorks"); } public void testSelectionClearWorks() { executeTarget("testSelectionClearWorks");
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/types/optional/ScriptSelectorTest.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 testNolanguage() {
1
void testCatchNoDtd() throws Exception {
2
        expectBuildExceptionContaining("testNolanguage",
2
        expectBuildExceptionContaining("testCatchNoDtd",
3
                "Absence of language attribute not detected",
3
                
4
                "script language must be specified");
5
    }
6
    public void testSelectionSetByDefault()
4
                       "expected failure",
5
                                       "Fatal error during transformation");
6
    }
7
    /**
8
     * A unit test for JUnit
9
     */
7
 {
10
    public void testCatalog() throws Exception {
8
        executeTarget("testSelectionSetByDefault");
11
         executeTarget("testCatalog");
9
    }
12
    }
10
    public void testSelectionSetWorks() {
13
    public void testOutputProperty() throws Exception {
11
        executeTarget("testSelectionSetWorks");
14
      executeTarget("testOutputProperty");
12
    }
15
    }
13
    public void testSelectionClearWorks() {
16
    public void testFactory() throws Exception {
14
        executeTarget("testSelectionClearWorks");
17
        executeTarget("testFactory");
15
    
18
    
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