1
2
3
4
5
6
7
8
9
10
11
12
13
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
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
58
59
60
61
62
63
64
65 public static ApplicationContext getApplicationContext() {
66 return applicationContext;
67 }
68
69
70
71
72 public static void setApplicationContext(ApplicationContext newApplicationContext) {
73 applicationContext = newApplicationContext;
74 }
75 }