1 | void testOrboth() {↵ | | 1 | void test↵
|
2 | expectPropertySet("orboth","orboth");↵ | | |
|
3 | }↵ | | |
|
|
4 | public void testFilesmatchIdentical() {↵ | | |
|
5 | expectPropertySet("filesmatch-identical","filesmatch-identical");↵ | | 2 | NoSourcefileDefined() {↵
|
| | | 3 | expectBuildException("testNoSourcefileDefined",↵
|
| | | 4 | "source file not defined");↵
|
| | | 5 | }↵
|
|
|
| | | 6 | /**↵
|
| | | 7 | * A unit test for JUnit↵
|
6 | }↵ | | 8 | ↵
|
|
| | | 9 | */↵
|
7 | public void testFilesmatchIncomplete() {↵ | | 10 | public void testNoPropertyDefined() {↵
|
8 | expectSpecificBuildException("filesmatch-incomplete",↵ | | 11 | expectBuildException("↵
|
9 | "Missing file2 attribute",↵ | | |
|
10 | ↵ | | 12 | testNoPropertyDefined",↵
|
| | | 13 | "output property not defined");↵
|
| | | 14 | }↵
|
|
|
| | | 15 | /**↵
|
| | | 16 | * A unit test for JUnit↵
|
| | | 17 | */↵
|
| | | 18 | public void testNoSourcefilefound() {↵
|
| | | 19 | expectBuildExceptionContaining("testNoSourcefilefound",↵
|
| | | 20 | "File not found", " doesn't exist");↵
|
11 | ↵ | | 21 | }↵
|
|
12 | ↵ | | 22 | /**↵
|
13 | "both file1 and file2 are required in filesmatch");↵ | | 23 | * A unit test for JUnit↵
|
14 | }↵ | | 24 | ↵
|
| | | 25 | */↵
|
15 | public void testFilesmatchOddsizes() {↵ | | 26 | public void testFail↵
|
16 | expectPropertyUnset("filesmatch-oddsizes","filesmatch-oddsizes↵ | | 27 | OnError()↵
|
| | | 28 | throws BuildException {↵
|
17 | ");↵ | | 29 | expectPropertyUnset("testFailOnError","testFailOnError");↵
|
18 | | | 30 |
|