1 | void testReferences() {↵ | | 1 | void testPass() {↵
|
2 | expectAssertion("test-references");↵ | | 2 | executeTarget("testPass");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testMultipleAssertions() {↵ | | 4 | public void testFail() {↵
|
5 | expectBuildExceptionContaining("test-multiple-assertions",↵ | | 5 | expectBuildExceptionContaining("test↵
|
6 | "multiple assertions rejected",↵ | | |
|
7 | "Only one assertion declaration is allowed");↵ | | 6 | Fail", "must fail", "${foo}=bar");↵
|
8 | }↵ | | 7 | }↵
|
|
9 | public void testReferenceAbuse() {↵ | | 8 | public void testEmpty() {↵
|
10 | expectBuildExceptionContaining("test-reference-abuse",↵ | | 9 | expectBuildExceptionContaining("test↵
|
11 | "reference abuse rejected",↵ | | |
|
12 | "You must not specify");↵ | | 10 | Empty", "must fail", "No nested XML specified");↵
|
13 | } | | 11 | }
|