1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.jdbc.spring;
17
18 import java.util.Arrays;
19
20 import org.junit.Test;
21 import org.kuali.common.jdbc.JdbcProjectContext;
22 import org.kuali.common.util.ProjectContext;
23 import org.kuali.common.util.service.DefaultSpringService;
24 import org.kuali.common.util.service.SpringContext;
25 import org.kuali.common.util.service.SpringService;
26 import org.kuali.common.util.spring.SpringUtils;
27
28 public class OleResetTest {
29
30 @Test
31 public void test() {
32 try {
33
34 SpringService ss = new DefaultSpringService();
35
36
37 ProjectContext project = new OleTestProjectContext();
38
39
40 ProjectContext other = new JdbcProjectContext();
41
42
43 Class<?> annotatedClass = SqlControllerConfig.class;
44
45
46 SpringContext context = SpringUtils.getSpringContext(annotatedClass, project, Arrays.asList(other));
47
48
49 ss.load(context);
50 } catch (Exception e) {
51 e.printStackTrace();
52 }
53
54 }
55
56 }