1 | void testRunAdapterError() {↵ | | 1 | void testJarNoFork() {↵
|
2 | expectBuildExceptionContaining(↵ | | 2 | expectBuildExceptionContaining(↵
|
3 | "runadaptererror", "xx", "No public run() method in↵ | | 3 | "testJarNoFork",↵
|
| | | 4 | "parameter validation",↵
|
| | | 5 | "Cannot execute a jar in non-forked mode. "↵
|
4 | ");↵ | | 6 | + "Please set fork='true'. ");↵
|
5 | }↵ | | 7 | }↵
|
|
6 | public void testDelay() {↵ | | 8 | public void testJarAndClassName() {↵
|
7 | expectLogContaining("delay", "MyTask called↵ | | 9 | expectBuildException("testJarAndClassName",↵
|
8 | ");↵ | | 10 | "Should not be able to set both classname AND jar");↵
|
9 | }↵ | | 11 | }↵
|
|
|
10 | public void testOnErrorReport() {↵ | | 12 | public void testClassnameAndJar() {↵
|
11 | expectLogContaining("onerror.report",↵ | | 13 | expect↵
|
12 | "MyTaskNotPresent cannot be found↵ | | 14 | BuildException("testClassnameAndJar",↵
|
13 | ");↵ | | 15 | "Should not be able to set both classname AND jar");↵
|
14 | | | 16 |
|