void testNoSourcefileDefined() {
expectBuildException("testNoSourcefileDefined",
"source file not defined");
}
/**
* A unit test for JUnit
*/
public void testNoPropertyDefined() {
expectBuildException("testNoPropertyDefined",
"output property not defined");
}
/**
* A unit test for JUnit
*/
public void testNoSourcefilefound() {
expectBuildExceptionContaining("testNoSourcefilefound",
"File not found", " doesn't exist");
}
void testOverrideDefault() {
expectLog(
"override.default",
"value is new");
}
public void testImplicit() {
expectLog(
"implicit", "Before implicitIn implicitAfter implicit");
}
public void testImplicitNotOptional() {
expectSpecificBuildException(
"implicit.notoptional",
"Missing nested elements for implicit element implicit",
"Missing nested elements for implicit element implicit");
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/LoadFileTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testNoSourcefileDefined() {↵ | | 1 | void test↵
|
2 | expectBuildException("testNoSourcefileDefined",↵ | | |
|
3 | "source file not defined");↵ | | |
|
4 | }↵ | | |
|
|
|
5 | /**↵ | | |
|
6 | * A unit test for JUnit↵ | | 2 | OverrideDefault() {↵
|
| | | 3 | expectLog(↵
|
| | | 4 | "override.default",↵
|
| | | 5 | "value is new");↵
|
7 | */↵ | | 6 | }↵
|
8 | public void testNoPropertyDefined() {↵ | | 7 | public void testImplicit() {↵
|
9 | expectBuildException("testNoPropertyDefined",↵ | | 8 | expect↵
|
10 | "output property not defined");↵ | | |
|
11 | }↵ | | |
|
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | 9 | Log(↵
|
| | | 10 | "implicit", "Before implicitIn implicitAfter implicit");↵
|
14 | */↵ | | 11 | }↵
|
15 | public void testNoSourcefilefound() {↵ | | 12 | public void testImplicitNotOptional() {↵
|
16 | expectBuildExceptionContaining("testNoSourcefilefound",↵ | | 13 | expectSpecificBuildException↵
|
17 | "File not found", " doesn't exis↵ | | 14 | (↵
|
| | | 15 | "implicit.notoptional",↵
|
| | | 16 | "Missing nested elements for implicit element implicit",↵
|
18 | t");↵ | | 17 | "Missing nested elements for implicit element implicit");↵
|
19 | } | | 18 | }
|
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 |