Last change
on this file since 208 was 208, checked in by Rick van der Zwet, 14 years ago |
Somehow more usable test output
|
File size:
498 bytes
|
Rev | Line | |
---|
[208] | 1 | package nl.rickvanderzwet.toos.assignment1;
|
---|
| 2 |
|
---|
| 3 | import java.util.Calendar;
|
---|
| 4 | import java.util.HashSet;
|
---|
| 5 | import java.util.Enumeration;
|
---|
| 6 |
|
---|
| 7 | import nl.rickvanderzwet.toos.assignment1.Voter;
|
---|
| 8 | import nl.rickvanderzwet.toos.assignment1.Census;
|
---|
| 9 |
|
---|
[207] | 10 | public class CensusTest extends junit.framework.TestCase {
|
---|
| 11 |
|
---|
[208] | 12 | public void testEmptyVoteList() {
|
---|
| 13 | Census c = new Census();
|
---|
| 14 | assertTrue(c.census(null).equals(null));
|
---|
[207] | 15 | }
|
---|
| 16 |
|
---|
[208] | 17 | public void testNoVote() {
|
---|
[207] | 18 | fail("An error message");
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.