void testExceptingFork() {
expectLogContaining("testExceptingFork",
"Java Result:");
}
public void testExceptingFoe() {
expectBuildExceptionContaining("testExceptingFoe",
"passes exception through",
"Exception raised inside called program");
}
public void testExceptingFoeFork() {
expectBuildExceptionContaining("testExceptingFoeFork",
"exceptions turned into error codes",
"Java returned:");
void testAntTypeTest() {
expectLog("antTypeTest", "");
}
public void testCorrectTaskNameBadAttr() {
expectBuildExceptionContaining(
"correct_taskname_badattr", "attribute message", "javac doesn't support the");
}
public void testCorrectTaskNameBadEl() {
expectBuildExceptionContaining(
"correct_taskname_badel", "element message", "javac doesn't support the");
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/PreSetDefTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testExceptingFork() {↵ | | 1 | void testAntTypeTest() {↵
|
2 | expectLogContaining("testExceptingFork",↵ | | 2 | expectLog↵
|
3 | "Java Result:");↵ | | 3 | ("antTypeTest", "");↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void testExceptingFoe() {↵ | | 5 | public void testCorrectTaskNameBadAttr() {↵
|
6 | expectBuildExceptionContaining("testExceptingFoe",↵ | | 6 | expectBuildExceptionContaining(↵
|
7 | "passes exception through",↵ | | |
|
8 | "Exception raised inside called program↵ | | |
|
9 | ");↵ | | 7 | "correct_taskname_badattr", "attribute message", "javac doesn't support the");↵
|
10 | }↵ | | 8 | }↵
|
|
11 | public void testExceptingFoeFork() {↵ | | 9 | public void testCorrectTaskNameBadEl() {↵
|
12 | expectBuildExceptionContaining("testExceptingFoeFork",↵ | | 10 | expectBuildExceptionContaining(↵
|
13 | "exceptions turned into error codes",↵ | | |
|
14 | ↵ | | |
|
15 | "Java returned:");↵ | | 11 | "correct_taskname_badel", "element message", "javac doesn't support the");↵
|
16 | | | 12 |
|
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 |