void testEncoding() {
executeTarget("encodingTest");
assertFileExists("foo has been properly named", "unziptestout/foo");
}
/*
* PR 21996
*/
public void testFlattenMapper() {
executeTarget("testFlattenMapper");
assertFileMissing("1/foo is not flattened", "unziptestout/1/foo");
assertFileExists("foo is flattened", "unziptestout/foo");
void testResourceCollections() {
executeTarget("testResourceCollection");
assertFileExists("junit.jar has been extracted",
"unziptestout/junit/framework/Assert.class");
}
public void testDocumentationClaimsOnCopy() {
executeTarget("testDocumentationClaimsOnCopy");
assertFileMissing("1/foo is excluded", "unziptestout/1/foo");
assertFileExists("2/bar is not excluded", "unziptestout/2/bar");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/UnzipTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/UnzipTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testEncoding() {↵ | | 1 | void testResourceCollections() {↵
|
2 | executeTarget("encodingTest");↵ | | 2 | executeTarget("testResourceCollection");↵
|
3 | assertFileExists("foo has been properly named", "unziptestout/foo");↵ | | 3 | assertFileExists("junit.jar has been ↵
|
4 | }↵ | | |
|
|
5 | /*↵ | | |
|
6 | * PR 21996↵ | | |
|
7 | */↵ | | |
|
8 | public void testFlattenMapper↵ | | 4 | extracted",↵
|
| | | 5 | "unziptestout/junit/framework/Assert.class");↵
|
| | | 6 | }↵
|
|
9 | () {↵ | | 7 | public void testDocumentationClaimsOnCopy() {↵
|
10 | executeTarget("testFlattenMapper");↵ | | 8 | executeTarget("testDocumentationClaimsOnCopy");↵
|
11 | assertFileMissing("1/foo is not flattened", "unziptestout/1/foo");↵ | | 9 | assertFileMissing("1/foo is excluded", "unziptestout/1/foo");↵
|
12 | assertFileExists("foo is flattened", "unziptestout/foo");↵ | | 10 | assertFileExists("2/bar is not excluded", "unziptestout/2/bar");↵
|
13 | | | 11 |
|
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 |