1 | void testNoResourceOnErrorFailAll(){↵ | | 1 | void testJarNoFork() {↵
|
2 | this.expectBuildExceptionContaining("noresourcefailall","the requested resource does not exist","Could not load definitions from resource↵ | | 2 | expectBuildExceptionContaining("testJarNoFork",↵
|
| | | 3 | "parameter validation",↵
|
| | | 4 | "Cannot execute a jar in non-forked mode. "↵
|
3 | ");↵ | | 5 | + "Please set fork='true'. ");↵
|
4 | }↵ | | 6 | }↵
|
5 | ↵ | | |
|
6 | public void testNoResourceOnErrorFail(){↵ | | 7 | public void testJarAndClassName() {↵
|
7 | expectLogContaining("noresourcefail","Could not load definitions from resource ↵ | | 8 | expectBuildException("testJarAndClassName",↵
|
8 | ");↵ | | 9 | "Should not be able to set both classname AND jar");↵
|
9 | }↵ | | 10 | }↵
|
10 | ↵ | | |
|
|
11 | public void testNoResourceOnErrorNotFail(){↵ | | 11 | public void testClassnameAndJar() {↵
|
12 | expectLogContaining("noresourcenotfail","Could not load definitions from resource ↵ | | 12 | expectBuildException("testClassnameAndJar",↵
|
13 | ");↵ | | 13 | "Should not be able to set both classname AND jar");↵
|
14 | | | 14 |
|