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);
void testMapperNoDest() { expectBuildExceptionContaining("testMapperNoDest", "two mappers", SignJar.ERROR_MAPPER_WITHOUT_DEST); } public void testTwoMappers() { expectBuildExceptionContaining("testTwoMappers", "two mappers", SignJar.ERROR_TOO_MANY_MAPPERS); } public void testNoAlias() { expectBuildExceptionContaining("testNoAlias", "no alias", SignJar.ERROR_NO_ALIAS);
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/SignJarTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testSchemaFileMustExist() throws Exception {
1
void testMapperNoDest() {
2
        expectBuildExceptionContaining("testSchemaFileMustExist",
2
        expectBuildExceptionContaining("testMapperNoDest",
3
                "expected failure",
3
                "two mappers",
4
                WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);
4
                
5
    }
6
    /**
7
     * A unit test for JUnit
8
     */
9
    public void testSchemaFileMustHaveOneOptionOnly() throws Exception
5
SignJar.ERROR_MAPPER_WITHOUT_DEST);
6
    }
10
 {
7
    public void testTwoMappers() {
11
        expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",
8
        expectBuildExceptionContaining("testTwoMappers",
12
                "expected failure",
9
                "two mappers",
13
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
10
                
14
    }
15
    /**
16
     * A unit test for JUnit
17
     */
18
    public void testSchemaMustBeSet() throws Exception
11
SignJar.ERROR_TOO_MANY_MAPPERS);
12
    }
19
 {
13
    public void testNoAlias() {
20
        expectBuildExceptionContaining("testSchemaMustBeSet",
14
        expectBuildExceptionContaining("testNoAlias",
21
                "expected failure",
15
                "no alias",
22
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
16
                SignJar.ERROR_NO_ALIAS);
23
    
17
    
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