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");
}
void testEmpty() {
expectBuildExceptionContaining("testEmpty", "missing property", "property");
}
public void testNoProperty() {
expectBuildExceptionContaining("testNoProperty", "missing property", "property");
}
public void testNoFile() {
expectBuildExceptionContaining("testNoFile", "missing file", "file");
}
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/MakeUrlTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void test11() {↵ | | 1 | void testEmpty() {↵
|
2 | expectBuildExceptionContaining("test11", "Attribute has no value",↵ | | 2 | expectBuildExceptionContaining("test↵
|
3 | "Attributes must have name and value");↵ | | |
|
4 | }↵ | | |
|
|
5 | /**↵ | | |
|
6 | * Inline manifest - Invalid attribute without value↵ | | |
|
7 | */↵ | | 3 | Empty", "missing property", "property");↵
|
| | | 4 | }↵
|
|
8 | public void test12() {↵ | | 5 | public void testNoProperty() {↵
|
9 | expectBuildExceptionContaining("test12", "Section with no name",↵ | | 6 | expectBuildExceptionContaining("test↵
|
10 | "Sections must have a name");↵ | | |
|
11 | }↵ | | |
|
|
12 | /**↵ | | |
|
13 | * Inline manifest - Duplicate attribute↵ | | |
|
14 | */↵ | | 7 | NoProperty", "missing property", "property");↵
|
| | | 8 | }↵
|
|
15 | public void test13() {↵ | | 9 | public void testNoFile() {↵
|
16 | expectBuildExceptionContaining("test13", "Duplicate Attribute",↵ | | 10 | expectBuildExceptionContaining("test↵
|
17 | "The attribute \"Test\" may not occur more than once in the same section");↵ | | 11 | NoFile", "missing file", "file");↵
|
18 | } | | 12 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |