void testBasic() {
expectPropertySet("basic","basic");
}
public void testConditionIncomplete() {
expectSpecificBuildException("condition-incomplete",
"property attribute has been omitted",
"The property attribute is required.");
}
public void testConditionEmpty() {
expectSpecificBuildException("condition-empty",
"no conditions",
"You must nest a condition into <condition>");
void testAntTypeTest() {
expectLog("antTypeTest", "");
}
public void testCorrectTaskNameBadAttr() {
expectBuildExceptionContaining(
"correct_taskname_badattr", "attribute message", "javac doesn't support the");
}
public void testCorrectTaskNameBadEl() {
expectBuildExceptionContaining(
"correct_taskname_badel", "element message", "javac doesn't support the");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ConditionTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/PreSetDefTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testBasic() {↵ | | 1 | void testAntTypeTest() {↵
|
2 | expectPropertySet("basic","basic");↵ | | 2 | expectLog("antTypeTest", "");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testConditionIncomplete() {↵ | | 4 | public void testCorrectTaskNameBadAttr() {↵
|
5 | expectSpecificBuildException("condition-incomplete",↵ | | 5 | expectBuildException↵
|
6 | "property attribute has been omitted",↵ | | |
|
7 | "The property attribute is required.↵ | | 6 | Containing(↵
|
8 | ");↵ | | 7 | "correct_taskname_badattr", "attribute message", "javac doesn't support the");↵
|
9 | }↵ | | 8 | }↵
|
|
10 | public void testConditionEmpty() {↵ | | 9 | public void testCorrectTaskNameBadEl() {↵
|
11 | expectSpecificBuildException("condition-empty",↵ | | 10 | expectBuildException↵
|
12 | "no conditions",↵ | | |
|
13 | "You mus↵ | | 11 | Containing(↵
|
14 | t nest a condition into <condition>");↵ | | 12 | "correct_taskname_badel", "element message", "javac doesn't support the");↵
|
15 | | | 13 |
|
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 |