View Javadoc

1   /**
2    * Copyright 2011-2012 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  package org.kuali.mobility.academics.dao;
16  
17  import static org.junit.Assert.*;
18  
19  import org.apache.log4j.Logger;
20  import org.junit.*;
21  import org.springframework.context.ApplicationContext;
22  import org.springframework.context.support.FileSystemXmlApplicationContext;
23  
24  /**
25   *
26   * @author Joe Swanson <joseswan@umich.edu>
27   */
28  public class AcademicsDaoImplTest {
29      private static final Logger LOG = Logger.getLogger( AcademicsDaoImplTest.class );
30  
31      private static ApplicationContext applicationContext;
32  
33      public AcademicsDaoImplTest() {
34      }
35  
36      private static String[] getConfigLocations() {
37          return new String[] { "classpath:/AcademicsSpringBeans.xml" };
38      }
39  
40      @BeforeClass
41      public static void setUpClass() throws Exception {
42          AcademicsDaoImplTest.setApplicationContext( new FileSystemXmlApplicationContext( getConfigLocations() ));
43      }
44  
45      @AfterClass
46      public static void tearDownClass() throws Exception {
47      }
48  
49      @Before
50      public void setUp() {
51      }
52  
53      @After
54      public void tearDown() {
55      }
56  
57  //    @Test
58  //    public void test() {
59  //        fail("Not implemented yet.");
60  //    }
61  
62      /**
63       * @return the applicationContext
64       */
65      public static ApplicationContext getApplicationContext() {
66          return applicationContext;
67      }
68  
69      /**
70       * @param applicationContext the applicationContext to set
71       */
72      public static void setApplicationContext(ApplicationContext newApplicationContext) {
73          applicationContext = newApplicationContext;
74      }
75  }