/**
   * Verifies that certain transactions from the DLHCP are hidden in the activity feed per use case
   * 43.
   *
   * @throws Exception
   */
  public void testHiddenActivityFromDLHCP() throws Exception {
    gen.clearAllTables();
    gen.standardData();

    action = new ActivityFeedAction(TestDAOFactory.getTestInstance(), 2L);
    List<TransactionBean> accesses = action.getTransactions(new Date(), 1);

    for (TransactionBean tb : accesses)
      if (tb.getRole() != null && tb.getRole().equals("DLHCP")) {
        assertFalse(tb.getTransactionType() == TransactionType.DEMOGRAPHICS_VIEW);
        assertFalse(tb.getTransactionType() == TransactionType.DEMOGRAPHICS_EDIT);
        assertFalse(tb.getTransactionType() == TransactionType.OFFICE_VISIT_CREATE);
        assertFalse(tb.getTransactionType() == TransactionType.OFFICE_VISIT_EDIT);
        assertFalse(tb.getTransactionType() == TransactionType.OFFICE_VISIT_VIEW);
        assertFalse(tb.getTransactionType() == TransactionType.RISK_FACTOR_VIEW);
        assertFalse(tb.getTransactionType() == TransactionType.PATIENT_HEALTH_INFORMATION_EDIT);
        assertFalse(tb.getTransactionType() == TransactionType.PATIENT_HEALTH_INFORMATION_VIEW);
        assertFalse(tb.getTransactionType() == TransactionType.PRESCRIPTION_REPORT_VIEW);
        assertFalse(tb.getTransactionType() == TransactionType.COMPREHENSIVE_REPORT_ADD);
        assertFalse(tb.getTransactionType() == TransactionType.COMPREHENSIVE_REPORT_VIEW);
        assertFalse(tb.getTransactionType() == TransactionType.LAB_PROCEDURE_ADD);
        assertFalse(tb.getTransactionType() == TransactionType.LAB_PROCEDURE_EDIT);
        assertFalse(tb.getTransactionType() == TransactionType.LAB_PROCEDURE_REMOVE);
        assertFalse(tb.getTransactionType() == TransactionType.PRECONFIRM_PRESCRIPTION_RENEWAL);
        assertFalse(tb.getTransactionType() == TransactionType.PRESCRIPTION_ADD);
        assertFalse(tb.getTransactionType() == TransactionType.PRESCRIPTION_EDIT);
        assertFalse(tb.getTransactionType() == TransactionType.PATIENT_REMINDERS_VIEW);
        assertFalse(tb.getTransactionType() == TransactionType.EMERGENCY_REPORT_CREATE);
        assertFalse(tb.getTransactionType() == TransactionType.EMERGENCY_REPORT_VIEW);
      }
  }
  @Override
  protected void setUp() throws Exception {
    gen = new TestDataGenerator();
    gen.clearAllTables();
    gen.standardData();

    this.factory = TestDAOFactory.getTestInstance();
    this.action = new ActivityFeedAction(factory, mid);
  }
Esempio n. 3
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);
 }
  /** Method to establish mock objects, database tables, and establish mock settings */
  @Override
  protected void setUp() throws Exception {
    gen = new TestDataGenerator();
    gen.clearAllTables();
    gen.standardData();

    request = mock(HttpServletRequest.class);
    response = mock(HttpServletResponse.class);
    session = mock(HttpSession.class);
    out = mock(PrintWriter.class);

    servlet = new LittleDelegatorServlet();
  }
  @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
  }
 /** Clears all of the tables */
 @Override
 protected void tearDown() throws Exception {
   gen.clearAllTables();
 }
 /**
  * Clears all of the tables, gets the standard data, and includes the data for use cases 68 and 69
  */
 @Override
 protected void setUp() throws Exception {
   gen = new TestDataGenerator();
   gen.clearAllTables();
   gen.standardData();
 }
 @Override
 protected void setUp() throws Exception {
   gen.clearAllTables();
 }