void testDestIsDir() throws Exception { expectBuildExceptionContaining("testDestIsDir", "expected failure", WsdlToDotnet.ERROR_DEST_FILE_IS_DIR); } /** * A unit test for JUnit */ public void testBothSrc() throws Exception { expectBuildExceptionContaining("testBothSrc", "expected failure", WsdlToDotnet.Schema.ERROR_BOTH_DECLARED); } /** * A unit test for JUnit */ public void testSrcIsDir() throws Exception { expectBuildExceptionContaining("testSrcIsDir", "expected failure", WsdlToDotnet.Schema.ERROR_FILE_IS_DIR); } /** * A unit test for JUnit */ public void testSrcIsMissing() throws Exception { expectBuildExceptionContaining("testSrcIsMissing", "expected failure", WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND); }
void testNoParams() throws Exception { expectBuildExceptionContaining("testNoParams", "expected failure", WsdlToDotnet.ERROR_NO_DEST_FILE); } /** * A unit test for JUnit */ public void testNoSrc() throws Exception { expectBuildExceptionContaining("testNoSrc", "expected failure", WsdlToDotnet.Schema.ERROR_NONE_DECLARED); } /** * A unit test for JUnit */ public void testDestIsDir() throws Exception { expectBuildExceptionContaining("testDestIsDir", "expected failure", WsdlToDotnet.ERROR_DEST_FILE_IS_DIR); } /** * A unit test for JUnit */ public void testBothSrc() throws Exception { expectBuildExceptionContaining("testBothSrc", "expected failure", WsdlToDotnet.Schema.ERROR_BOTH_DECLARED); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/WsdlToDotnetTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/WsdlToDotnetTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testDestIsDir() throws Exception {
1
void testNoParams() throws Exception {
2
        expectBuildExceptionContaining("testDestIsDir",
2
        expectBuildExceptionContaining("testNoParams",
3
                "expected failure",
3
                "expected failure",
4
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
4
                WsdlToDotnet.ERROR_NO_DEST_FILE);
5
    }
5
    }
6
    /**
6
    /**
7
     * A unit test for JUnit
7
     * A unit test for JUnit
8
     */
8
     */
9
    public void testBothSrc() throws Exception {
9
    public void testNoSrc() throws Exception {
10
        expectBuildExceptionContaining("testBothSrc",
10
        expectBuildExceptionContaining("testNoSrc",
11
                "expected failure",
11
                "expected failure",
12
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
12
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
13
    }
13
    }
14
 
15
    /**
14
    /**
16
     * A unit test for JUnit
15
     * A unit test for JUnit
17
     */
16
     */
18
    public void testSrcIsDir() throws Exception {
17
    public void testDestIsDir() throws Exception {
19
        expectBuildExceptionContaining("testSrcIsDir",
18
        expectBuildExceptionContaining("testDestIsDir",
20
                "expected failure",
19
                "expected failure",
21
                WsdlToDotnet.Schema.ERROR_FILE_IS_DIR);
20
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
22
    }
21
    }
23
    /**
22
    /**
24
     * A unit test for JUnit
23
     * A unit test for JUnit
25
     */
24
     */
26
    public void testSrcIsMissing() throws Exception {
25
    public void testBothSrc() throws Exception {
27
        expectBuildExceptionContaining("testSrcIsMissing",
26
        expectBuildExceptionContaining("testBothSrc",
28
                "expected failure",
27
                "expected failure",
29
                WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);
28
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
30
    }
29
    }
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