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); } /** * A unit test for JUnit */ public void testDestIsDir() throws Exception { expectBuildExceptionContaining("testDestIsDir", "expected failure", WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
void testMapperPath() { executeTarget("testMapperPath"); } public 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 tearDown() {
1
void testMapperPath() {
2
        executeTarget("teardown");
2
        executeTarget("testMapperPath");
3
    }
3
    }
4
    /**
5
     * A unit test for JUnit
6
     */
7
    public void testNoParams() throws Exception {
4
    public void testMapperNoDest() {
8
        expectBuildExceptionContaining("testNoParams",
5
        expectBuildExceptionContaining("testMapperNoDest",
9
                "expected failure",
6
                "two mappers",
10
                WsdlToDotnet.ERROR_NO_DEST_FILE);
7
                
11
    }
12
    /**
13
     * A unit test for JUnit
14
     */
15
    public void testNoSrc() throws Exception
8
SignJar.ERROR_MAPPER_WITHOUT_DEST);
9
    }
16
 {
10
    public void testTwoMappers() {
17
        expectBuildExceptionContaining("testNoSrc",
11
        expectBuildExceptionContaining("testTwoMappers",
18
                "expected failure",
12
                "two mappers",
19
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
13
                
20
    }
21
    /**
22
     * A unit test for JUnit
23
     */
24
    public void testDestIsDir() throws Exception
14
SignJar.ERROR_TOO_MANY_MAPPERS);
15
    }
25
 {
16
    public void testNoAlias() {
26
        expectBuildExceptionContaining("testDestIsDir",
17
        expectBuildExceptionContaining("testNoAlias",
27
                "expected failure",
18
                "no alias",
28
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
19
                SignJar.ERROR_NO_ALIAS);
29
    
20
    
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