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); }
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); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsReachableTest.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 testFTPURL() throws Exception {
1
void testParseableErrorsIgnoredWhenFalse() throws Exception {
2
        executeTarget("testFTPURL");
2
        executeTarget("testLocalWsdl");
3
    }
3
    }
4
    public void testBoth
4
    /**
5
     * A unit test for JUnit
6
     */
5
() throws Exception {
7
    public void testSchemaFileMustExist() throws Exception {
6
        expectBuildExceptionContaining("testBoth",
8
        expectBuildExceptionContaining("testSchemaFileMustExist",
7
                "error on two targets",
9
                "e
8
                IsReachable
10
xpected failure",
9
.ERROR_BOTH_TARGETS);
11
                WsdlToDotnet.Schema.ERROR_
10
    }
11
    public void testNoTargets
12
FILE_NOT_FOUND);
13
    }
14
    /**
15
     * A unit test for JUnit
16
     */
12
() throws Exception {
17
    public void testSchemaFileMustHaveOneOptionOnly() throws Exception {
13
        expectBuildExceptionContaining("testNoTargets",
18
        expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",
14
                "no params",
19
                "expected failure",
15
                IsReachable.ERROR_NO_HOSTNAME);
20
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
16
    }
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