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);
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);
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 testNoParams() throws Exception {
2
        expectBuildExceptionContaining("testNoParams",
3
                "expected failure",
4
                WsdlToDotnet.ERROR_NO_DEST_FILE);
5
    }
6
    /**
7
     * A unit test for JUnit
8
     */
1
void testNoSrc() throws Exception {
9
    public void testNoSrc() throws Exception {
2
        expectBuildExceptionContaining("testNoSrc",
10
        expectBuildExceptionContaining("testNoSrc",
3
                "expected failure",
11
                "expected failure",
4
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
12
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
5
    }
13
    }
6
    /**
14
    /**
7
     * A unit test for JUnit
15
     * A unit test for JUnit
8
     */
16
     */
9
    public void testDestIsDir() throws Exception {
17
    public void testDestIsDir() throws Exception {
10
        expectBuildExceptionContaining("testDestIsDir",
18
        expectBuildExceptionContaining("testDestIsDir",
11
                "expected failure",
19
                "expected failure",
12
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
20
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
13
    }
21
    
14
    /**
15
     * A unit test for JUnit
16
     */
17
    public void testBothSrc() throws Exception {
18
        expectBuildExceptionContaining("testBothSrc",
19
                "expected failure",
20
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
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