void testFilesmatchDifferentEol() { executeTarget("filesmatch-different-eol"); } public void testFilesmatchSameEol() { executeTarget("filesmatch-same-eol"); } public void testFilesmatchNeitherExist() { executeTarget("filesmatch-neitherexist"); } public void testContains() { expectPropertySet("contains","contains"); }
void testTestTarTask() throws java.io.IOException { testLogoExtraction("testTarTask"); } public void testTestGzipTarTask() throws java.io.IOException { testLogoExtraction("testGzipTarTask"); } public void testTestBzip2TarTask() throws java.io.IOException { testLogoExtraction("testBzip2TarTask"); } public void testSrcDirTest() { expectBuildException("srcDirTest", "Src cannot be a directory."); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ConditionTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/UntarTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testFilesmatchDifferentEol() {
1
void test
2
        executeTarget("filesmatch-different-eol");
3
    }
4
    public void testFilesmatchSameEol() {
5
        executeTarget("filesmatch-same-eol
2
TestTarTask() throws java.io.IOException {
3
        testLogoExtraction("testTarTask");
4
    }
5
    public void testTestGzipTarTask() throws java.io.IOException {
6
");
6
        testLogoExtraction("testGzipTarTask");
7
    }
7
    }
8
    public void testFilesmatchNeitherExist() {
8
    public void test
9
        executeTarget("filesmatch-neitherexist
9
TestBzip2TarTask() throws java.io.IOException {
10
");
10
        testLogoExtraction("testBzip2TarTask");
11
    }
11
    }
12
    public void testContains() {
12
    public void testSrcDirTest() {
13
        expectPropertySet("contains","contains");
13
        expectBuildException("srcDirTest", "Src cannot be a directory.");
14
    }
14
    }
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