/** * testMakeEmailApp * * @throws Exception */ public void testMakeEmailApp() throws 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()); }