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); } /** * A unit test for JUnit */ public void testBothSrc() throws Exception { expectBuildExceptionContaining("testBothSrc", "expected failure", WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
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); } public void testBadTimeout() throws Exception { expectBuildExceptionContaining("testBadTimeout", "error on -ve timeout", IsReachable.ERROR_BAD_TIMEOUT);
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 testNoSrc() throws Exception {
1
void testBoth() throws Exception {
2
        expectBuildExceptionContaining("testNoSrc",
2
        expectBuildExceptionContaining("testBoth",
3
                "expected failure",
3
                "e
4
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
5
    }
6
    /**
7
     * A unit test for JUnit
8
     */
4
rror on two targets",
5
                IsReachable.ERROR_BOTH_TARGETS);
6
    }
9
    public void testDestIsDir() throws Exception {
7
    public void testNoTargets() throws Exception {
10
        expectBuildExceptionContaining("testDestIsDir",
8
        expectBuildExceptionContaining("testNoTargets",
11
                "expected failure",
9
                "no params",
12
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
10
                
13
    }
14
    /**
15
     * A unit test for JUnit
16
     */
11
IsReachable.ERROR_NO_HOSTNAME);
12
    }
17
    public void testBothSrc() throws Exception {
13
    public void testBadTimeout() throws Exception {
18
        expectBuildExceptionContaining("testBothSrc",
14
        expectBuildExceptionContaining("testBadTimeout",
19
                "expected failure",
15
                "e
20
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED
16
rror on -ve timeout",
21
);
17
                IsReachable.ERROR_BAD_TIMEOUT);
22
    
18
    
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