void testRealTestWithResource() throws java.io.IOException {
testRealTest("realTestWithResource");
}
private void testRealTest(String target) throws java.io.IOException {
executeTarget(target);
assertTrue(FILE_UTILS.contentEquals(project.resolveFile("../asf-logo.gif"),
project.resolveFile("asf-logo.gif")));
void testResourceCollection() throws java.io.IOException {
testLogoExtraction("resourceCollection");
}
private void testLogoExtraction(String target) throws java.io.IOException {
executeTarget(target);
assertTrue(FILE_UTILS.contentEquals(project.resolveFile("../asf-logo.gif"),
project.resolveFile("asf-logo.gif")));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/GUnzipTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/UntarTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testRealTestWithResource() throws java.io.IOException {↵ | | 1 | void testResourceCollection() throws java.io.IOException {↵
|
2 | testRealTest("realTestWithResource");↵ | | 2 | testLogoExtraction("resourceCollection");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | private void testRealTest(String target) throws java.io.IOException {↵ | | 4 | private void testLogoExtraction(String target) throws java.io.IOException {↵
|
5 | executeTarget(target);↵ | | 5 | executeTarget(target);↵
|
6 | assertTrue(FILE_UTILS.contentEquals(project.resolveFile("../asf-logo.gif"),↵ | | 6 | assertTrue(FILE_UTILS.contentEquals(project.resolveFile("../asf-logo.gif"),↵
|
7 | project.resolveFile("asf-logo.gif")));↵ | | 7 | project.resolveFile("asf-logo.gif")));↵
|
8 | | | 8 |
|
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 |