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 testFTPURL() throws Exception { executeTarget("testFTPURL"); } public void testBoth() throws Exception { expectBuildExceptionContaining("testBoth", "error on two targets", IsReachable.ERROR_BOTH_TARGETS); } public void testNoTargets() throws Exception { expectBuildExceptionContaining("testNoTargets", "no params", IsReachable.ERROR_NO_HOSTNAME);
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/condition/IsReachableTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testParseableErrorsIgnoredWhenFalse() throws Exception {
1
void testFTPURL() throws Exception {
2
        executeTarget("testLocalWsdl");
2
        executeTarget("testFTPURL");
3
    }
3
    }
4
    /**
4
    
5
     * A unit test for JUnit
6
     */
7
    public void testSchemaFileMustExist() throws Exception {
5
public void testBoth() throws Exception {
8
        expectBuildExceptionContaining("testSchemaFileMustExist",
6
        expectBuildExceptionContaining("testBoth",
9
                "expected failure",
7
                "e
10
                WsdlToDotnet.Schema
8
rror on two targets",
11
.ERROR_FILE_NOT_FOUND);
9
                IsReachable.ERROR_
12
    }
13
    /**
14
     * A unit test for JUnit
15
     */
16
    public void testSchemaFileMustHaveOneOptionOnly
10
BOTH_TARGETS);
11
    }
17
() throws Exception {
12
    public void testNoTargets() throws Exception {
18
        expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",
13
        expectBuildExceptionContaining("testNoTargets",
19
                "expected failure",
14
                "no params",
20
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
15
                IsReachable.ERROR_NO_HOSTNAME);
21
    
16
    
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