@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()); }
@Test public void testConstructor() throws Exception { SavedReviewerSearchDAO dao = new SavedReviewerSearchDAO(); assertNull("Tx Manager should be null.", dao.getTransactionManager()); }