void test9() { expectBuildExceptionContaining("test9", "Construction is invalid - Name attribute should not be used", "Specify the section name using the \"name\" attribute of the <section> element"); } /** * Inline manifest - Invalid attribute without name */ public 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");
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"); } /** * Inline manifest - Duplicate attribute */ public void test13() { expectBuildExceptionContaining("test13", "Duplicate Attribute", "The attribute \"Test\" may not occur more than once in the same section");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.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 test9() {
2
        expectBuildExceptionContaining("test9", "Construction is invalid - Name attribute should not be used",
3
                                       "Specify the section name using the \"name\" attribute of the <section> element");
4
    }
5
    /**
6
     * Inline manifest - Invalid attribute without name
7
     */
8
    public void test10() {
1
void test10() {
9
        expectBuildExceptionContaining("test10", "Attribute has no name",
2
        expectBuildExceptionContaining("test10", "Attribute has no name",
10
                                       "Attributes must have name and value");
3
                                       "Attributes must have name and value");
11
    }
4
    }
12
    /**
5
    /**
13
     * Inline manifest - Invalid attribute without value
6
     * Inline manifest - Invalid attribute without value
14
     */
7
     */
15
    public void test11() {
8
    public void test11() {
16
        expectBuildExceptionContaining("test11", "Attribute has no value",
9
        expectBuildExceptionContaining("test11", "Attribute has no value",
17
                                       "Attributes must have name and value");
10
                                       "Attributes must have name and value");
18
    }
11
    }
19
    /**
12
    /**
20
     * Inline manifest - Invalid attribute without value
13
     * Inline manifest - Invalid attribute without value
21
     */
14
     */
22
    public void test12() {
15
    public void test12() {
23
        expectBuildExceptionContaining("test12", "Section with no name",
16
        expectBuildExceptionContaining("test12", "Section with no name",
24
                                       "Sections must have a name");
17
                                       "Sections must have a name");
25
    
18
    }
19
    /**
20
     * Inline manifest - Duplicate attribute
21
     */
22
    public void test13() {
23
        expectBuildExceptionContaining("test13", "Duplicate Attribute",
24
                                       "The attribute \"Test\" may not occur more than once in the same section");
25
    
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