void testImplicitNotOptional() {
expectSpecificBuildException(
"implicit.notoptional",
"Missing nested elements for implicit element implicit",
"Missing nested elements for implicit element implicit");
}
public void testImplicitOptional() {
expectLog(
"implicit.optional", "Before implicitAfter implicit");
}
public void testImplicitExplicit() {
expectSpecificBuildException(
"implicit.explicit",
"Only one element allowed when using implicit elements",
"Only one element allowed when using implicit elements");
void testShortcut() {
expectPropertySet("shortcut","shortcut","set");
}
public void testUnset() {
expectPropertyUnset("dontset","dontset");
}
public void testSetValue() {
expectPropertySet("setvalue","setvalue","woowoo");
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 testImplicitNotOptional() {↵ | | 1 | void test↵
|
2 | expectSpecificBuildException(↵ | | |
|
3 | "implicit.notoptional",↵ | | |
|
4 | "Missing nested elements for implicit element implicit",↵ | | |
|
5 | "Missing nested elements for implicit element implici↵ | | 2 | Shortcut() {↵
|
6 | t");↵ | | 3 | expectPropertySet("shortcut","shortcut","set");↵
|
7 | }↵ | | 4 | }↵
|
|
8 | public void testImplicitOptional() {↵ | | 5 | public void testUnset() {↵
|
9 | expectLog(↵ | | 6 | expect↵
|
10 | "implicit.optional", "Before implicitAfter implicit");↵ | | 7 | PropertyUnset("dontset","dontset");↵
|
11 | }↵ | | 8 | }↵
|
|
12 | public void testImplicitExplicit() {↵ | | 9 | public void testSetValue() {↵
|
13 | expectSpecificBuildException(↵ | | 10 | expect↵
|
14 | "implicit.explicit",↵ | | |
|
15 | "Only one element allowed when using implicit elements",↵ | | |
|
16 | "Only one element allowed when using implicit elements");↵ | | 11 | PropertySet("setvalue","setvalue","woowoo");↵
|
17 | | | 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 |