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