1 | void testNoSourcefileDefined() {↵ | | 1 | void test↵
|
2 | expectBuildException("testNoSourcefileDefined",↵ | | |
|
3 | "source file not defined");↵ | | |
|
4 | }↵ | | |
|
|
|
5 | /**↵ | | |
|
6 | * A unit test for JUnit↵ | | 2 | Excepting() {↵
|
| | | 3 | expectLogContaining("testExcepting",↵
|
| | | 4 | "Exception raised inside called program");↵
|
7 | */↵ | | 5 | }↵
|
|
8 | public void testNoPropertyDefined() {↵ | | 6 | public void testExceptingFork() {↵
|
9 | expectBuildException("testNoPropertyDefined",↵ | | 7 | expect↵
|
10 | "output property not defined");↵ | | |
|
11 | }↵ | | |
|
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | 8 | LogContaining("testExceptingFork",↵
|
| | | 9 | "Java Result:");↵
|
14 | */↵ | | 10 | }↵
|
|
15 | public void testNoSourcefilefound() {↵ | | 11 | public void testExceptingFoe() {↵
|
16 | expectBuildExceptionContaining("testNoSourcefilefound",↵ | | 12 | expectBuildExceptionContaining("test↵
|
17 | "File not found", " doesn't exist↵ | | 13 | ExceptingFoe",↵
|
| | | 14 | "passes exception through",↵
|
18 | ");↵ | | 15 | "Exception raised inside called program");↵
|
19 | | | 16 |
|