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 testReadBadFileNoFail() {
expectLog( "testReadBadFileNoFail", "srcfile is a directory!" );
}
public void testEchoToBadFile() {
expectBuildExceptionContaining( "testEchoToBadFile",
"destfile is a directory", "destfile is a directory!" );
}
public void testEchoToBadFileFail() {
expectBuildExceptionContaining( "testEchoToBadFileFail",
"destfile is a directory", "destfile is a directory!" );
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/optional/EchoPropertiesTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testBasic() {↵ | | 1 | void testReadBadFileNoFail() {↵
|
2 | expectPropertySet("basic","basic");↵ | | 2 | expectLog( "testReadBadFileNoFail", "srcfile is a directory!" );↵
|
3 | }↵ | | 3 | }↵
|
|
|
4 | public void testConditionIncomplete() {↵ | | 4 | public void testEchoToBadFile() {↵
|
5 | expectSpecificBuildException("condition-incomplete",↵ | | 5 | expectBuildException↵
|
6 | "property attribute has been omitted",↵ | | |
|
7 | "The property attribute is required."↵ | | 6 | Containing( "testEchoToBadFile",↵
|
8 | );↵ | | 7 | "destfile is a directory", "destfile is a directory!" );↵
|
9 | }↵ | | 8 | }↵
|
|
|
10 | public void testConditionEmpty() {↵ | | 9 | public void testEchoToBadFileFail() {↵
|
11 | expectSpecificBuildException("condition-empty",↵ | | 10 | expectBuildException↵
|
12 | "no conditions",↵ | | |
|
13 | "You must nest a condition into <condition>"↵ | | 11 | Containing( "testEchoToBadFileFail",↵
|
14 | );↵ | | 12 | "destfile is a directory", "destfile is a directory!" );↵
|
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 |