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);
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);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/RmicAdvancedTest.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 NotestForking() throws Exception {
1
void testLocalhostURL() throws Exception {
2
        executeTarget("testForking");
2
        executeTarget("testLocalhostURL");
3
    }
3
    }
4
    /**
4
    
5
     * test the forking compiler
6
     */
7
    public void testForkingAntClasspath() throws Exception {
8
        executeTarget("testForkingAntClasspath");
9
    }
10
    /**
11
     * test the forking compiler
12
     */
5
public void testIpv4localhost() throws Exception {
6
        executeTarget("testIpv4localhost");
7
    }
13
    public void testAntClasspath() throws Exception {
8
    public void testFTPURL() throws Exception {
14
        executeTarget("testAntClasspath");
9
        executeTarget("test
15
    }
16
    /**
17
     * A unit test for JUnit
18
     */
10
FTPURL");
11
    }
19
    public void testBadName() throws Exception {
12
    public void testBoth() throws Exception {
20
        expectBuildExceptionContaining("testBadName",
13
        expectBuildExceptionContaining("testBoth",
21
                "compiler not known",
14
                "error on two targets",
22
                RmicAdapterFactory.ERROR_UNKNOWN_COMPILER);
15
                IsReachable.ERROR_BOTH_TARGETS);
23
    
16
    
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