void test5() { expectBuildException("test5", "dest invalid (or no http-server on local machine)"); } public void test6() { executeTarget("test6"); } public void testUseTimestamp() { executeTarget("testUseTimestamp"); } public void testUseTomorrow() { executeTarget("testUseTomorrow");
void testResourcesmatchError() { expectBuildException("resourcesmatch-error", "should fail because no resources specified"); } public void testResourcesmatchEmpty() { executeTarget("resourcesmatch-match-empty"); } public void testResourcesmatchOne() { executeTarget("resourcesmatch-match-one"); } public void testResourcesmatchBinary() { executeTarget("resourcesmatch-match-binary");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/GetTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ConditionTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void test5() {
1
void testResourcesmatchError() {
2
        expectBuildException("test5", "dest invalid (or no http-server on local machine)
2
        expectBuildException("resourcesmatch-error",
3
");
3
            "should fail because no resources specified");
4
    }
4
    }
5
    public void test6() {
5
    public void testResourcesmatchEmpty() {
6
        executeTarget("test6");
6
        executeTarget("resourcesmatch-match-empty");
7
    }
7
    }
8
    public void testUseTimestamp() {
8
    public void testResourcesmatchOne() {
9
        executeTarget("testUseTimestamp");
9
        executeTarget("resourcesmatch-match-one");
10
    }
10
    }
11
    public void testUseTomorrow() {
11
    public void testResourcesmatchBinary() {
12
        executeTarget("testUseTomorrow");
12
        executeTarget("resourcesmatch-match-binary");
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