예제 #1
0
  @Test
  public void testSetTransactionManager() throws Exception {
    SavedReviewerSearchDAO dao = new SavedReviewerSearchDAO();

    ITransactionManager mgr = EasyMock.createStrictMock(ITransactionManager.class);
    dao.setTransactionManager(mgr);
    assertEquals("Wrong tx manager returned.", mgr, dao.getTransactionManager());
  }
예제 #2
0
 @Test
 public void testConstructor() throws Exception {
   SavedReviewerSearchDAO dao = new SavedReviewerSearchDAO();
   assertNull("Tx Manager should be null.", dao.getTransactionManager());
 }