void testSimple() {
expectLog("simple", "Hello World");
}
public void testText() {
expectLog("text", "Inner Text");
}
public void testDuplicateAttribute() {
expectBuildException(
"duplicate.attribute",
"the attribute text has already been specified");
}
public void testDuplicateElement() {
expectBuildException(
"duplicate.element",
"the element text has already been specified");
void testTaskThatIsntDefined() {
expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");
}
public void testTaskThatDoesntReallyExist() {
expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist");
}
public void testType() {
expectPropertySet("testType", "testType");
}
public void testPreset() {
expectPropertySet("testPreset", "testPreset");
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/condition/TypeFoundTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testSimple() {↵ | | 1 | void test↵
|
2 | expectLog("simple", "Hello Worl↵ | | 2 | TaskThatIsntDefined() {↵
|
3 | d");↵ | | 3 | expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void testText() {↵ | | 5 | public void testT↵
|
6 | expectLog("text", "Inner Tex↵ | | 6 | askThatDoesntReallyExist() {↵
|
7 | t");↵ | | 7 | expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist");↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public void testDuplicateAttribute() {↵ | | 9 | public void testType() {↵
|
10 | expectBuildException(↵ | | 10 | expect↵
|
11 | "duplicate.attribute",↵ | | |
|
12 | "the attribute text has already been specified");↵ | | 11 | PropertySet("testType", "testType");↵
|
13 | }↵ | | 12 | }↵
|
|
14 | public void testDuplicateElement() {↵ | | 13 | public void testPreset() {↵
|
15 | expectBuildException(↵ | | 14 | expect↵
|
16 | "duplicate.element",↵ | | |
|
17 | "the element text has already been specified");↵ | | 15 | PropertySet("testPreset", "testPreset");↵
|
18 | | | 16 |
|
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 |