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 test15() {
executeTarget("test15");
assertNull(project.getProperty("test"));
}
// Specified dir is "" -> this is the current directory and should
// always exist
public void test16() {
executeTarget("test16");
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 test15() {↵
|
2 | executeTarget("searchInPathNotThere");↵ | | 2 | executeTarget("test15");↵
|
3 | assertNull(project.getProperty("test"));↵ | | 3 | assertNull(project.getProperty("test"));↵
|
4 | }↵ | | 4 | }↵
|
|
5 | // File is not found in specified filepath↵ | | 5 | // Specified dir is "" -> this is the current directory and should↵
|
| | | 6 | // always exist↵
|
6 | public void testSearchInPathIsThere() {↵ | | 7 | public void test16() {↵
|
7 | executeTarget("searchInPathIsThere");↵ | | 8 | executeTarget("test16");↵
|
8 | assertEquals("true", project.getProperty("test"));↵ | | 9 | assertEquals("true", project.getProperty("test"));↵
|
9 | | | 10 |
|
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 |