Difference between 
          version 58 
          and 
          version 57:
           
          
| At line 188 changed 1 line. |  
|     protected void setUp() throws Exception { |  
|     protected void setUp() { |  
| At line 193 changed 1 line. |  
|     protected void tearDown() throws Exception { |  
|     protected void tearDown() { |  
| At line 203 changed 1 line. |  
| The code you see above is what we need for a basic JUnit test that initializes and destroys our PersonDao.  The "ctx" object is a reference to Spring's ApplicationContext, which is initialized (code below) in the [BaseDaoTestCase's|http://raibledesigns.com/downloads/appfuse/api/org/appfuse/persistence/BaseDaoTestCase.java.html] constructor.   |  
| The code you see above is what we need for a basic JUnit test that initializes and destroys our PersonDao.  The "ctx" object is a reference to Spring's ApplicationContext, which is initialized in a static block of the [BaseDaoTestCase's|http://raibledesigns.com/downloads/appfuse/api/org/appfuse/persistence/BaseDaoTestCase.java.html] class.   |  
| At line 205 removed 5 lines. |  
| [{Java2HtmlPlugin |  
 |  
| ctx = new ClassPathXmlApplicationContext("/applicationContext.xml"); |  
| }] |  
 |  
| At line 273 added 2 lines. |  
| ;:I tend to just hard-code test values into Java code - but the .properties file is an option. |  
 |  
 
           
      
      
      
      Back to CreateDAO,
       or to the Page History.
        
      
      
      
      
      
      
      
      
          
     |