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); } public void testBadTimeout() throws Exception { expectBuildExceptionContaining("testBadTimeout", "error on -ve timeout", IsReachable.ERROR_BAD_TIMEOUT);
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/condition/IsReachableTest.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 testFTPURL() throws Exception {
1
void testMapperPath() {
2
        executeTarget("testFTPURL");
2
        executeTarget("testMapperPath");
3
    }
3
    }
4
    public void testBoth() throws Exception {
4
    public void testMapperNoDest() {
5
        expectBuildExceptionContaining("testBoth",
5
        expectBuildExceptionContaining("testMapperNoDest",
6
                "error on two targets",
6
                "two mappers",
7
                IsReachable.ERROR_BOTH_TARGETS);
7
                SignJar.ERROR_MAPPER_WITHOUT_DEST);
8
    }
8
    }
9
    public void testNoTargets() throws Exception {
9
    public void testTwoMappers() {
10
        expectBuildExceptionContaining("testNoTargets",
10
        expectBuildExceptionContaining("testTwoMappers",
11
                "no params",
11
                "two mappers",
12
                IsReachable.ERROR_NO_HOSTNAME);
12
                
13
    }
14
    public void testBadTimeout() throws Exception
13
SignJar.ERROR_TOO_MANY_MAPPERS);
14
    }
15
 {
15
    public void testNoAlias() {
16
        expectBuildExceptionContaining("testBadTimeout",
16
        expectBuildExceptionContaining("testNoAlias",
17
                "error on -ve timeout",
17
                "no alias",
18
                IsReachable.ERROR_BAD_TIMEOUT);
18
                SignJar.ERROR_NO_ALIAS);
19
    
19
    
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