void testNoTargets() throws Exception { expectBuildExceptionContaining("testNoTargets", "no params", IsReachable.ERROR_NO_HOSTNAME); } public void testBadTimeout() throws Exception { expectBuildExceptionContaining("testBadTimeout", "error on -ve timeout", IsReachable.ERROR_BAD_TIMEOUT); } public void NotestFile() throws Exception { expectBuildExceptionContaining("testFile", "error on file URL", IsReachable.ERROR_NO_HOST_IN_URL); }
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); } /** * A unit test for JUnit */ public void testSchemaMustBeSet() throws Exception { expectBuildExceptionContaining("testSchemaMustBeSet", "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/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 testNoTargets() throws Exception {
1
void testSchemaFileMustExist() throws Exception {
2
        expectBuildExceptionContaining("testNoTargets",
2
        expectBuildExceptionContaining("testSchemaFileMustExist",
3
                "no params",
3
                "expected failure",
4
                IsReachable.ERROR_NO_HOSTNAME);
4
                WsdlToDotnet.Schema.ERROR_
5
    }
6
    public void testBadTimeout
5
FILE_NOT_FOUND);
6
    }
7
    /**
8
     * A unit test for JUnit
9
     */
7
() throws Exception {
10
    public void testSchemaFileMustHaveOneOptionOnly() throws Exception {
8
        expectBuildExceptionContaining("testBadTimeout",
11
        expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",
9
                "error on -ve timeout",
12
                "e
10
                IsReachable.ERROR_BAD_TIMEOUT);
11
    }
13
xpected failure",
14
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
15
    }
16
    /**
17
     * A unit test for JUnit
18
     */
12
    public void NotestFile() throws Exception {
19
    public void testSchemaMustBeSet() throws Exception {
13
        expectBuildExceptionContaining("testFile",
20
        expectBuildExceptionContaining("testSchemaMustBeSet",
14
                "error on file URL",
21
                "expected failure",
15
                IsReachable.ERROR_NO_HOST_IN_URL);
22
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
16
    }
23
    }
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