1 | void testEchoToBadFile() {↵ | | 1 | void testNoJarNoClassname(){↵
|
2 | expectBuildExceptionContaining( "testEchoToBadFile",↵ | | 2 | expectBuildExceptionContaining("testNoJarNoClassname",↵
|
3 | "destfile is a directory", "destfile is a directory!" ↵ | | 3 | "parameter validation",↵
|
4 | );↵ | | 4 | "Classname must not be null.");↵
|
5 | }↵ | | 5 | }↵
|
|
|
6 | public void testEchoToBadFileFail() {↵ | | 6 | public void testJarNoFork() {↵
|
7 | expectBuildExceptionContaining( "testEchoToBadFileFail",↵ | | 7 | expectBuildExceptionContaining("test↵
|
8 | "destfile is a directory", "destfile is a directory!" ↵ | | 8 | JarNoFork",↵
|
| | | 9 | "parameter validation",↵
|
| | | 10 | "Cannot execute a jar in non-forked mode. "↵
|
9 | );↵ | | 11 | + "Please set fork='true'. ");↵
|
10 | }↵ | | 12 | }↵
|
|
|
11 | public void testEchoToBadFileNoFail() {↵ | | 13 | public void test↵
|
12 | expectLog( "testEchoToBadFileNoFail", "destfile is a directory!↵ | | 14 | JarAndClassName() {↵
|
| | | 15 | expectBuildException("testJarAndClassName",↵
|
13 | ");↵ | | 16 | "Should not be able to set both classname AND jar");↵
|
14 | | | 17 |
|