1 | void testNoJarNoClassname(){↵ | | 1 | void testContainsIncomplete1() {↵
|
2 | expectBuildExceptionContaining("testNoJarNoClassname",↵ | | 2 | expectSpecificBuildException("contain↵
|
3 | "parameter validation",↵ | | |
|
4 | "Classname must not be null.↵ | | 3 | s-incomplete1",↵
|
| | | 4 | "Missing contains attribute",↵
|
5 | ");↵ | | 5 | "both string and substring are required in contains");↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public void testJarNoFork() {↵ | | 7 | public void testContainsIncomplete2() {↵
|
8 | expectBuildExceptionContaining("testJarNoFork",↵ | | 8 | expectSpecificBuildException("contain↵
|
9 | "parameter validation",↵ | | |
|
10 | "Cannot execute a jar in non-forked mode. "↵ | | |
|
| | | 9 | s-incomplete2",↵
|
| | | 10 | "Missing contains attribute",↵
|
11 | + "Please set fork='true'. ");↵ | | 11 | "both string and substring are required in contains");↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public void testJarAndClassName() {↵ | | 13 | public void testIstrue() {↵
|
14 | expectBuildException("testJarAndClassName",↵ | | 14 | expect↵
|
15 | "Should not be able to set both classname AND jar");↵ | | 15 | PropertySet("istrue","istrue");↵
|
16 | | | 16 |
|