void testEmpty() {
expectBuildExceptionContaining("testEmpty", "missing property", "property");
}
public void testNoProperty() {
expectBuildExceptionContaining("testNoProperty", "missing property", "property");
}
public void testNoFile() {
expectBuildExceptionContaining("testNoFile", "missing file", "file");
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/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 test11() {↵
|
2 | expectBuildExceptionContaining("testEmpty", "missing property", "property");↵ | | 2 | expectBuildExceptionContaining("test↵
|
3 | }↵ | | |
|
| | | 3 | 11", "Attribute has no value",↵
|
| | | 4 | "Attributes must have name and value");↵
|
| | | 5 | }↵
|
|
| | | 6 | /**↵
|
| | | 7 | * Inline manifest - Invalid attribute without value↵
|
| | | 8 | */↵
|
4 | public void testNoProperty() {↵ | | 9 | public void test12() {↵
|
5 | expectBuildExceptionContaining("testNoProperty", "missing property", "property");↵ | | 10 | expectBuildExceptionContaining("test12", "Section with no name",↵
|
| | | 11 | "Sections must have a name");↵
|
| | | 12 | }↵
|
|
| | | 13 | /**↵
|
| | | 14 | * Inline manifest - Duplicate attribute↵
|
6 | }↵ | | 15 | ↵
|
| | | 16 | */↵
|
7 | public void testNoFile() {↵ | | 17 | public void test13() {↵
|
8 | expectBuildExceptionContaining("testNoFile", "missing file", "file↵ | | 18 | expectBuildExceptionContaining("test13", "Duplicate Attribute",↵
|
9 | ");↵ | | 19 | "The attribute \"Test\" may not occur more than once in the same section");↵
|
10 | | | 20 |
|
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 |