void testSrcDirTest() {
expectBuildException("srcDirTest", "Src cannot be a directory.");
}
public void testEncoding() {
expectSpecificBuildException("encoding",
"<untar> overrides setEncoding.",
"The untar task doesn't support the "
+ "encoding attribute");
}
public void testResourceCollection() throws java.io.IOException {
testLogoExtraction("resourceCollection");
void testIsfalseFalse() {
expectPropertySet("isfalse-false","isfalse-false");
}
public void testIsfalseIncomplete1() {
expectSpecificBuildException("isfalse-incomplete",
"Missing attribute",
"Nothing to test for falsehood");
}
public void testElse() {
executeTarget("testElse");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/UntarTest.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 testSrcDirTest() {↵ | | 1 | void testIsfalseFalse() {↵
|
2 | expectBuildException("srcDirTest", "Src cannot be a directory.");↵ | | 2 | expectPropertySet("isfalse-false","isfalse-false");↵
|
3 | }↵ | | 3 | }↵
|
|
|
4 | public void testEncoding() {↵ | | 4 | public void testIsfalseIncomplete1() {↵
|
5 | expectSpecificBuildException("encoding",↵ | | 5 | expectSpecificBuildException("↵
|
6 | "<untar> overrides setEncoding.",↵ | | |
|
7 | "The untar task doesn't support the "↵ | | |
|
8 | ↵ | | 6 | isfalse-incomplete",↵
|
| | | 7 | "Missing attribute",↵
|
9 | + "encoding attribute");↵ | | 8 | "Nothing to test for falsehood");↵
|
10 | }↵ | | 9 | }↵
|
|
11 | public void testResourceCollection() throws java.io.IOException {↵ | | 10 | public void test↵
|
12 | testLogoExtraction↵ | | 11 | Else() {↵
|
13 | ("resourceCollection");↵ | | 12 | executeTarget("testElse");↵
|
14 | | | 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 |