void testTrimFile() { expectBuildExceptionContaining("testTrimFile", "should fail", "string length function only"); } public void testImmutable() { executeTarget("testImmutable"); } public void testZipFileSet() { executeTarget("testZipFileSet"); } public void testZipFileSetCondition() { executeTarget("testZipFileSetCondition");
void testNolanguage() { expectBuildExceptionContaining("testNolanguage", "Absence of language attribute not detected", "script language must be specified"); } public void testSelectionSetByDefault() { executeTarget("testSelectionSetByDefault"); } public void testSelectionSetWorks() { executeTarget("testSelectionSetWorks"); } public void testSelectionClearWorks() { executeTarget("testSelectionClearWorks");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/LengthTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/optional/ScriptSelectorTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testTrimFile() {
1
void testNolanguage() {
2
        expectBuildExceptionContaining("testTrimFile",
2
        expectBuildExceptionContaining("testNolanguage",
3
            "should fail",
3
                "Absence of language attribute not detected",
4
 "string length function only");
4
                "script language must be specified");
5
    }
5
    }
6
    public void testImmutable() {
6
    public void testSelectionSetByDefault() {
7
        executeTarget("testImmutable");
7
        executeTarget("testSelectionSetByDefault");
8
    }
8
    }
9
    public void testZipFileSet() {
9
    public void testSelectionSetWorks() {
10
        executeTarget("testZipFileSet");
10
        executeTarget("testSelectionSetWorks");
11
    }
11
    }
12
    public void testZipFileSetCondition() {
12
    public void testSelectionClearWorks() {
13
        executeTarget("testZipFileSetCondition");
13
        executeTarget("testSelectionClearWorks");
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