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