Ignore:
Timestamp:
Oct 25, 2010, 9:07:38 PM (14 years ago)
Author:
Rick van der Zwet
Message:

Somehow more usable test output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • liacs/TOOS/assignment1/src/CensusTest.java

    r207 r208  
     1package nl.rickvanderzwet.toos.assignment1;
     2
     3import java.util.Calendar;
     4import java.util.HashSet;
     5import java.util.Enumeration;
     6
     7import nl.rickvanderzwet.toos.assignment1.Voter;
     8import nl.rickvanderzwet.toos.assignment1.Census;
     9
    110public class CensusTest extends junit.framework.TestCase {
    211
    3     public void testNothing() {
     12    public void testEmptyVoteList() {
     13      Census c = new Census();
     14      assertTrue(c.census(null).equals(null));   
    415    }
    516   
    6     public void testWillAlwaysFail() {
     17    public void testNoVote() {
    718        fail("An error message");
    819    }
Note: See TracChangeset for help on using the changeset viewer.