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");
}
void testKeyword() throws Exception {
executeJspCompile("testKeyword", "default_jsp.java");
}
/**
* what happens to 1nvalid-classname
*/
public void testInvalidClassname() throws Exception {
executeJspCompile("testInvalidClassname",
"_1nvalid_0002dclassname_jsp.java");
}
/**
* A unit test for JUnit
*/
public void testNoTld() throws Exception {
// expectBuildExceptionContaining("testNoTld",
// "Jasper found an error in a file",
// "Java returned: 9");
expectBuildExceptionContaining("testNoTld",
"not found",
"Java returned: 9");
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/JspcTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testOverrideDefault() {↵ | | 1 | void testKeyword() throws Exception {↵
|
2 | expectLog(↵ | | 2 | exec↵
|
3 | "override.default",↵ | | |
|
4 | "value is new");↵ | | 3 | uteJspCompile("testKeyword", "default_jsp.java");↵
|
| | | 4 | }↵
|
|
|
| | | 5 | /**↵
|
| | | 6 | * what happens to 1nvalid-classname↵
|
5 | }↵ | | 7 | */↵
|
6 | public void testImplicit() {↵ | | 8 | public void testInvalidClassname() throws Exception {↵
|
7 | expectLog(↵ | | 9 | exec↵
|
8 | "implicit", "Before implicitIn implicitAfter implicit");↵ | | 10 | uteJspCompile("testInvalidClassname",↵
|
| | | 11 | "_1nvalid_0002dclassname_jsp.java");↵
|
| | | 12 | }↵
|
|
|
| | | 13 | /**↵
|
| | | 14 | * A unit test for JUnit↵
|
9 | }↵ | | 15 | */↵
|
10 | public void testImplicitNotOptional() {↵ | | 16 | public void test↵
|
| | | 17 | NoTld() throws Exception {↵
|
11 | expectSpecificBuildException(↵ | | 18 | // expectBuildException↵
|
12 | "implicit.notoptional",↵ | | |
|
13 | "Missing nested elements for implicit element implicit",↵ | | |
|
14 | "Missing nested elements for implicit element implicit↵ | | 19 | Containing("testNoTld",↵
|
| | | 20 | // "Jasper found an error in a file",↵
|
| | | 21 | // "Java returned: 9");↵
|
| | | 22 | expectBuildExceptionContaining("testNoTld",↵
|
| | | 23 | "not found",↵
|
15 | ");↵ | | 24 | "Java returned: 9");↵
|
16 | } | | 25 | }
|
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 |