| 
 
      
      
         
      
          Difference between 
          version 244 
          and 
          version 243:
           
          
| At line 3 changed 10 lines. |  | protected void setUp() throws Exception { |  | // the following is necessary for lazy loading |  | sf = (SessionFactory) ctx.getBean("sessionFactory"); |  | // open and bind the session for this test thread. |  | Session s = sf.openSession(); |  | TransactionSynchronizationManager |  | .bindResource(sf, new SessionHolder(s)); |  |  |  | // setup code here |  | } |  | <bean id="userManagerTarget" class="org.appfuse.service.impl.UserManagerImpl"> |  | <property name="userDAO"><ref local="userDAO"/></property> |  | </bean> |  | At line 14 removed 12 lines. |  | protected void tearDown() throws Exception { |  | // unbind and close the session. |  | SessionHolder holder = (SessionHolder) |  | TransactionSynchronizationManager.getResource(sf); |  | Session s = holder.getSession(); |  | s.flush(); |  | TransactionSynchronizationManager.unbindResource(sf); |  | SessionFactoryUtils.closeSessionIfNecessary(s, sf); |  |  |  | // teardown code here |  | } |  |  |  
      Back to SandBox,
       or to the Page History.
        |