Changeset 208
- Timestamp:
- Oct 25, 2010, 9:07:38 PM (14 years ago)
- Location:
- liacs/TOOS/assignment1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
liacs/TOOS/assignment1/build.xml
r207 r208 54 54 <target name="junit" depends="jar"> 55 55 <mkdir dir="${report.dir}" /> 56 <junit printsummary=" yes">56 <junit printsummary="no"> 57 57 <classpath> 58 58 <path refid="classpath"/> … … 61 61 62 62 <formatter type="xml" /> 63 <formatter type="brief" usefile="false" /> 63 64 64 65 <batchtest fork="yes" todir="${report.dir}"> -
liacs/TOOS/assignment1/src/CensusTest.java
r207 r208 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 1 10 public class CensusTest extends junit.framework.TestCase { 2 11 3 public void testNothing() { 12 public void testEmptyVoteList() { 13 Census c = new Census(); 14 assertTrue(c.census(null).equals(null)); 4 15 } 5 16 6 public void test WillAlwaysFail() {17 public void testNoVote() { 7 18 fail("An error message"); 8 19 }
Note:
See TracChangeset
for help on using the changeset viewer.