void testSearchInPathNotThere() {
executeTarget("searchInPathNotThere");
assertNull(project.getProperty("test"));
}
// File is not found in specified filepath
public void testSearchInPathIsThere() {
executeTarget("searchInPathIsThere");
assertEquals("true", project.getProperty("test"));
void test20() {
executeTarget("test20");
assertNull(project.getProperty("test"));
}
// Core class that exists in system classpath is ignored, but found in specified classpath
public void test21() {
executeTarget("test21");
assertEquals("true", project.getProperty("test"));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/AvailableTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/AvailableTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testSearchInPathNotThere() {↵ | | 1 | void test20() {↵
|
2 | executeTarget("searchInPathNotThere");↵ | | 2 | executeTarget("test20");↵
|
3 | assertNull(project.getProperty("test"));↵ | | 3 | assertNull(project.getProperty("test"));↵
|
4 | }↵ | | 4 | }↵
|
|
5 | // File is not found in specified filepath↵ | | 5 | // Core class that exists in system classpath is ignored, but found in specified classpath↵
|
6 | public void testSearchInPathIsThere() {↵ | | 6 | public void test21() {↵
|
7 | executeTarget("searchInPathIsThere");↵ | | 7 | executeTarget("test21");↵
|
8 | assertEquals("true", project.getProperty("test"));↵ | | 8 | assertEquals("true", project.getProperty("test"));↵
|
9 | | | 9 |
|
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 |