void testDuplicateTextName2() {
expectBuildException(
"duplicatetextname2",
"the attribute name \"text\" has already been used by the text element");
}
public void testEscape() {
expectLog(
"escape",
"a@b or a@b is avalue@bvalue");
}
public void testAttributeDescription() {
expectLog(
"attribute.description",
"description is hello world");
void testFilesmatchMatch() {
expectPropertySet("filesmatch-match","filesmatch-match");
}
public void testFilesmatchDifferentSizes() {
expectPropertyUnset("filesmatch-different-sizes",
"filesmatch-different-sizes");
}
public void testFilesmatchDifferentOnemissing() {
expectPropertyUnset("filesmatch-different-onemissing",
"filesmatch-different-onemissing");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ConditionTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testDuplicateTextName2() {↵ | | 1 | void testFilesmatchMatch() {↵
|
2 | expectBuildException(↵ | | 2 | expect↵
|
3 | "duplicatetextname2",↵ | | |
|
4 | "the attribute name \"text\" has already been used by the text element");↵ | | 3 | PropertySet("filesmatch-match","filesmatch-match");↵
|
5 | }↵ | | 4 | }↵
|
|
6 | public void testEscape() {↵ | | 5 | public void test↵
|
7 | expectLog(↵ | | |
|
8 | "escape",↵ | | |
|
9 | "a@b or a@b is avalue@bvalue↵ | | 6 | FilesmatchDifferentSizes() {↵
|
| | | 7 | expectPropertyUnset("filesmatch-different-sizes",↵
|
10 | ");↵ | | 8 | "filesmatch-different-sizes");↵
|
11 | }↵ | | 9 | }↵
|
|
12 | public void testAttributeDescription() {↵ | | 10 | public void test↵
|
13 | expectLog(↵ | | |
|
14 | "attribute.description",↵ | | |
|
15 | "description is hello world↵ | | 11 | FilesmatchDifferentOnemissing() {↵
|
| | | 12 | expectPropertyUnset("filesmatch-different-onemissing",↵
|
16 | ");↵ | | 13 | "filesmatch-different-onemissing");↵
|
17 | | | 14 |
|
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 |