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);
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);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.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 testMapperPath() {
1
void testFTPURL() throws Exception {
2
        executeTarget("testMapperPath");
2
        executeTarget("testFTPURL");
3
    }
3
    }
4
    public void testMapperNoDest() {
4
    public void testBoth() throws Exception {
5
        expectBuildExceptionContaining("testMapperNoDest",
5
        expectBuildExceptionContaining("testBoth",
6
                "two mappers",
6
                "error on two targets",
7
                SignJar.ERROR_MAPPER_WITHOUT_DEST);
7
                IsReachable.ERROR_BOTH_TARGETS);
8
    }
8
    }
9
    public void testTwoMappers() {
9
    public void testNoTargets() throws Exception {
10
        expectBuildExceptionContaining("testTwoMappers",
10
        expectBuildExceptionContaining("testNoTargets",
11
                "two mappers",
11
                "no params",
12
                SignJar.ERROR_TOO_MANY_MAPPERS);
12
                IsReachable.ERROR_NO_HOSTNAME);
13
    
13
    
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