void testResultPropertyZeroNoFork() {
executeTarget("testResultPropertyZeroNoFork");
assertEquals("0",project.getProperty("exitcode"));
}
public void testResultPropertyNonZeroNoFork() {
executeTarget("testResultPropertyNonZeroNoFork");
assertEquals("-1",project.getProperty("exitcode"));
void test9() {
executeTarget("test9");
assertEquals("true", project.getProperty("test"));
}
// All three specified and all three exist -> true
public void test10() {
executeTarget("test10");
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 testResultPropertyZeroNoFork() {↵ | | 1 | void test9() {↵
|
2 | executeTarget("testResultPropertyZeroNoFork");↵ | | 2 | executeTarget("test9");↵
|
3 | assertEquals("0",project.getProperty("exitcode"));↵ | | 3 | assertEquals("true", project.getProperty("test"));↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void testResultPropertyNonZeroNoFork↵ | | 5 | // All three specified and all three exist -> true↵
|
6 | () {↵ | | 6 | public void test10() {↵
|
7 | executeTarget("testResultPropertyNonZeroNoFork");↵ | | 7 | executeTarget("test10");↵
|
8 | assertEquals("-1",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 |