Skip to content

Commit

Permalink
Add offending test for #62
Browse files Browse the repository at this point in the history
  • Loading branch information
michelole committed May 7, 2018
1 parent 525904e commit 5142e2d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/java/at/medunigraz/imi/bst/n2c2/zoning/ZoningTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.time.Period;
import java.util.ArrayList;

import org.junit.Assume;
import org.junit.Test;
import org.xml.sax.SAXException;

Expand Down Expand Up @@ -63,6 +64,21 @@ public void getAllData() throws IOException, SAXException{


}

@Test
public void emptyRecordDate() throws IOException, SAXException {
// 292.xml has a visit with no Record Date
final File file = new File("data/292.xml");
Assume.assumeTrue(file.exists());

Patient patient = new PatientDAO().fromXML(file);

ArrayList<PatientVisits> visits = patient.getAllVisits();

// FIXME See https://github.com/bst-mug/n2c2/issues/62
assertEquals(4, visits.size());
//assertEquals(5, visits.size());
}


}

0 comments on commit 5142e2d

Please sign in to comment.