/**
  * 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());
 }
Esempio n. 2
0
 @Override
 protected void setUp() throws Exception {
   gen = new TestDataGenerator();
   gen.clearAllTables();
   gen.transactionLog();
   gen.ltData0();
   gen.ltData1();
   gen.ltData2();
   gen.hcp0();
   gen.labProcedures();
   action = new LabProcLTAction(factory);
 }
  @Override
  protected void setUp() throws Exception {
    gen.clearAllTables();
    gen.hospitals();
    gen.hcp0();
    gen.patient1();
    gen.admin1();
    gen.officeVisit1();
    gen.ndCodes();
    gen.uc60();

    action = new EditOfficeVisitAction(factory, 9000000001L, "1", "1");
    actionUC60 = new EditOfficeVisitAction(factory, 9000000011L, "311", "3"); // UC60
  }