1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kcb.test;
17
18 import javax.xml.namespace.QName;
19
20 import org.kuali.rice.core.api.lifecycle.Lifecycle;
21 import org.kuali.rice.core.framework.resourceloader.SpringResourceLoader;
22 import org.kuali.rice.kcb.service.GlobalKCBServiceLocator;
23 import org.kuali.rice.kcb.service.KCBServiceLocator;
24 import org.kuali.rice.test.BaselineTestCase;
25
26
27
28
29
30
31 public abstract class KCBTestCase extends BaselineTestCase {
32 protected KCBServiceLocator services;
33
34 public KCBTestCase() {
35 super("kcb");
36 }
37
38 @Override
39 public void setUp() throws Exception {
40 super.setUp();
41 services = GlobalKCBServiceLocator.getInstance();
42 }
43
44 @Override
45 protected Lifecycle getLoadApplicationLifecycle() {
46 SpringResourceLoader springResourceLoader = new SpringResourceLoader(new QName("KCBTestHarnessApplicationResourceLoader"), "classpath:KCBTestHarnessSpringBeans.xml", null);
47 springResourceLoader.setParentSpringResourceLoader(getTestHarnessSpringResourceLoader());
48 return springResourceLoader;
49 }
50
51 }