@Override protected void setUp() throws Exception { factor = new ChildhoodInfectionFactor(factory, 2L, 250.3, 487); gen = new TestDataGenerator(); gen.clearAllTables(); gen.hospitals(); gen.hcp0(); gen.patient2(); p = factory.getPatientDAO().getPatient(2L); }
public void testMakeEmailApp() throws FormValidationException, Exception { gen.patient2(); gen.hcp0(); Email testEmail = action.makeEmailApp(9000000000L, "2", "You are allergic."); assertEquals("*****@*****.**", testEmail.getFrom()); assertEquals("*****@*****.**", testEmail.getToListStr()); assertEquals( "HCP has prescribed you a potentially dangerous medication", testEmail.getSubject()); assertEquals( "Kelly Doctor has prescribed a medication that you are allergic to or that has a known interaction with a drug you are currently taking. You are allergic.", testEmail.getBody()); }
@Override protected void setUp() throws Exception { gen.clearAllTables(); gen.hospitals(); gen.hcp0(); gen.patient1(); gen.admin1(); gen.officeVisit1(); gen.ndCodes(); action = new EditOfficeVisitAction(factory, 9000000001L, "1", "1"); }