Work in progress.

This commit is contained in:
Woody Folsom
2012-03-11 16:49:20 -04:00
parent 571d0a1922
commit d5d73003d2
13 changed files with 833 additions and 67 deletions

View File

@@ -0,0 +1,24 @@
package net.woodyfolsom.cs6601.p2;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.hamcrest.core.Is.*;
import java.io.File;
import org.junit.Test;
public class SurveyReaderTest {
@Test
public void testReadSurveyDataset() {
Survey survey = SurveyReader.readSurvey(new File("data/survey.xml"));
assertNotNull(survey);
assertThat(survey.getDinerCount(), equalTo(5));
Diner diner = survey.getDiner(0);
assertThat(diner.isAllergic(0), is(false));
}
}