void test1() { expectBuildException("test1", "required argument, target, missing"); } public void test2() { expectBuildException("test2", "Invalid output directory"); } public void test3() { executeTarget("test3"); } public void test4() { executeTarget("test4");
void testFilesmatchDifferentSizes() { expectPropertyUnset("filesmatch-different-sizes", "filesmatch-different-sizes"); } public void testFilesmatchDifferentOnemissing() { expectPropertyUnset("filesmatch-different-onemissing", "filesmatch-different-onemissing"); } public void testFilesmatchDifferentEol() { executeTarget("filesmatch-different-eol"); } public void testFilesmatchSameEol() { executeTarget("filesmatch-same-eol");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ANTLRTest.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 test1() {
1
void test
2
        expectBuildException("test1", "required argument, target, missing
2
FilesmatchDifferentSizes() {
3
        expectPropertyUnset("filesmatch-different-sizes",
3
");
4
            "filesmatch-different-sizes");
4
    }
5
    }
5
    public void test2() {
6
    public void test
6
        expectBuildException("test2", "Invalid output directory
7
FilesmatchDifferentOnemissing() {
8
        expectPropertyUnset("filesmatch-different-onemissing",
7
");
9
            "filesmatch-different-onemissing");
8
    }
10
    }
9
    public void test3() {
11
    public void testFilesmatchDifferentEol() {
10
        executeTarget("test3");
12
        executeTarget("filesmatch-different-eol");
11
    }
13
    }
12
    public void test4() {
14
    public void testFilesmatchSameEol() {
13
        executeTarget("test4");
15
        executeTarget("filesmatch-same-eol");
14
    
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