void testResultPropertyNonZero() {
executeTarget("testResultPropertyNonZero");
assertEquals("2",project.getProperty("exitcode"));
}
public void testResultPropertyZeroNoFork() {
executeTarget("testResultPropertyZeroNoFork");
assertEquals("0",project.getProperty("exitcode"));
void test21() {
executeTarget("test21");
assertEquals("true", project.getProperty("test"));
}
// Core class that exists in system classpath is not ignored with ignoresystemclass="false"
public void test22() {
executeTarget("test22");
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/JavaTest.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 testResultPropertyNonZero() {↵ | | 1 | void test21() {↵
|
2 | executeTarget("testResultPropertyNonZero");↵ | | 2 | executeTarget("test21");↵
|
3 | assertEquals("2",project.getProperty("exitcode"));↵ | | 3 | assertEquals("true", project.getProperty("test"));↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void testResultPropertyZeroNoFork↵ | | 5 | // Core class that exists in system classpath is not ignored with ignoresystemclass="false"↵
|
6 | () {↵ | | 6 | public void test22() {↵
|
7 | executeTarget("testResultPropertyZeroNoFork");↵ | | 7 | executeTarget("test22");↵
|
8 | assertEquals("0",project.getProperty("exitcode"));↵ | | 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 |