Changeset 208 for liacs


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

Somehow more usable test output

Location:
liacs/TOOS/assignment1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • liacs/TOOS/assignment1/build.xml

    r207 r208  
    5454  <target name="junit" depends="jar">
    5555    <mkdir dir="${report.dir}" />
    56     <junit printsummary="yes">
     56    <junit printsummary="no">
    5757      <classpath>
    5858        <path refid="classpath"/>
     
    6161     
    6262      <formatter type="xml" />
     63      <formatter type="brief" usefile="false" />
    6364
    6465      <batchtest fork="yes" todir="${report.dir}">
  • 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.