1 | void testReadBadFile() {↵ | | 1 | void testNoJarNoClassname(){↵
|
2 | expectBuildExceptionContaining( "testReadBadFile",↵ | | 2 | expectBuildExceptionContaining("testNoJarNoClassname",↵
|
3 | "srcfile is a directory", "srcfile is a directory!" ↵ | | 3 | "parameter validation",↵
|
4 | );↵ | | 4 | "Classname must not be null.");↵
|
5 | }↵ | | 5 | }↵
|
|
|
6 | public void testReadBadFileFail() {↵ | | 6 | public void testJarNoFork() {↵
|
7 | expectBuildExceptionContaining( "testReadBadFile",↵ | | 7 | expectBuildExceptionContaining("test↵
|
8 | "srcfile is a directory", "srcfile 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 testReadBadFileNoFail() {↵ | | 13 | public void testJarAndClassName() {↵
|
12 | expectLog( "testReadBadFileNoFail", "srcfile is a directory!" ↵ | | 14 | expectBuildException("testJarAndClassName",↵
|
13 | );↵ | | 15 | "Should not be able to set both classname AND jar");↵
|
14 | } | | 16 | }
|