void testLocalhostURL() throws Exception { executeTarget("testLocalhostURL"); } public void testIpv4localhost() throws Exception { executeTarget("testIpv4localhost"); } public void testFTPURL() throws Exception { executeTarget("testFTPURL"); } public void testBoth() throws Exception { expectBuildExceptionContaining("testBoth", "error on two targets", IsReachable.ERROR_BOTH_TARGETS);
void testMapperFileset() { executeTarget("testMapperFileset"); } public void testDestDirPath() { executeTarget("testDestDirPath"); } public void testMapperPath() { executeTarget("testMapperPath"); } public void testMapperNoDest() { expectBuildExceptionContaining("testMapperNoDest", "two mappers", SignJar.ERROR_MAPPER_WITHOUT_DEST);
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 testLocalhostURL() throws Exception {
1
void testMapperFileset() {
2
        executeTarget("testLocalhostURL");
2
        executeTarget("testMapperFileset");
3
    }
3
    }
4
    public void testIpv4localhost() throws Exception {
4
    public void testDestDirPath() {
5
        executeTarget("testIpv4localhost");
5
        executeTarget("testDestDirPath");
6
    }
6
    }
7
    public void testFTPURL() throws Exception {
7
    public void testMapperPath() {
8
        executeTarget("testFTPURL");
8
        executeTarget("testMapperPath");
9
    }
9
    }
10
    public void testBoth() throws Exception {
10
    public void testMapperNoDest() {
11
        expectBuildExceptionContaining("testBoth",
11
        expectBuildExceptionContaining("testMapperNoDest",
12
                "error on two targets",
12
                "two mappers",
13
                IsReachable.ERROR_BOTH_TARGETS);
13
                SignJar.ERROR_MAPPER_WITHOUT_DEST);
14
    
14
    
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