コード例 #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());
 }