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 NotestForking() throws Exception { executeTarget("testForking"); } /** * test the forking compiler */ public void testForkingAntClasspath() throws Exception { executeTarget("testForkingAntClasspath"); } /** * test the forking compiler */ public void testAntClasspath() throws Exception { executeTarget("testAntClasspath"); } /** * A unit test for JUnit */ public void testBadName() throws Exception { expectBuildExceptionContaining("testBadName", "compiler not known", RmicAdapterFactory.ERROR_UNKNOWN_COMPILER); }
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/RmicAdvancedTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testLocalhostURL() throws Exception {
1
void NotestForking() throws Exception {
2
        executeTarget("testLocalhostURL");
2
        executeTarget("testForking");
3
    }
3
    }
4
    public void testIpv4localhost() throws Exception {
4
    
5
        executeTarget("testIpv4localhost");
6
    }
5
/**
6
     * test the forking compiler
7
     */
8
    public void testForkingAntClasspath() throws Exception {
9
        executeTarget("testForkingAntClasspath");
10
    }
11
    /**
12
     * test the forking compiler
13
     */
7
    public void testFTPURL() throws Exception {
14
    public void testAntClasspath() throws Exception {
8
        executeTarget("testFTPURL");
15
        executeTarget("test
9
    }
16
AntClasspath");
17
    }
18
    /**
19
     * A unit test for JUnit
20
     */
10
    public void testBoth() throws Exception {
21
    public void testBadName() throws Exception {
11
        expectBuildExceptionContaining("testBoth",
22
        expectBuildExceptionContaining("testBadName",
12
                "error on two targets",
23
                "compiler not known",
13
                IsReachable.ERROR_BOTH_TARGETS);
24
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
14
    }
25
    }
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