...
When in a BaseContextSensitiveTest type of Test class, some test data is available to you automatically. See the standardTestDataset.xml and initialInMemoryTestDataSet.xml files for content. See "Setting Up the Expected Database" below for how to add your own test data.
Code Block |
---|
public class MyTests extends BaseContextSensitiveTest { public void getPatientByName_shouldReturnValidPatients() { List patients = Context.getPatientService().getPatientsByName("bob"); Assert.assertEquals(34, patients.get(0).getPatientId()); } } |
...