void testEmpty() { expectBuildExceptionContaining("testEmpty", "missing property", "property"); } public void testNoProperty() { expectBuildExceptionContaining("testNoProperty", "missing property", "property"); } public void testNoFile() { expectBuildExceptionContaining("testNoFile", "missing file", "file");
void test10() { expectBuildExceptionContaining("test10", "Attribute has no name", "Attributes must have name and value"); } /** * Inline manifest - Invalid attribute without value */ public void test11() { expectBuildExceptionContaining("test11", "Attribute has no value", "Attributes must have name and value"); } /** * Inline manifest - Invalid attribute without value */ public void test12() { expectBuildExceptionContaining("test12", "Section with no name", "Sections must have a name");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MakeUrlTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testEmpty() {
1
void test10() {
2
        expectBuildExceptionContaining("testEmpty", "missing property", "property");
2
        expectBuildExceptionContaining("test
3
    }
3
10", "Attribute has no name",
4
                                       "Attributes must have name and value");
5
    }
6
    /**
7
     * Inline manifest - Invalid attribute without value
8
     */
4
    public void testNoProperty() {
9
    public void test11() {
5
        expectBuildExceptionContaining("testNoProperty", "missing property", "property");
10
        expectBuildExceptionContaining("test
6
    }
11
11", "Attribute has no value",
12
                                       "Attributes must have name and value");
13
    }
14
    /**
15
     * Inline manifest - Invalid attribute without value
16
     */
7
    public void testNoFile() {
17
    public void test12() {
8
        expectBuildExceptionContaining("testNoFile", "missing file", "fil
18
        expectBuildExceptionContaining("test12", "Section with no name",
9
e");
19
                                       "Sections must have a name");
10
    
20
    
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