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.impl.resourceloader.SpringResourceLoader;
22 import org.kuali.rice.core.impl.resourceloader.SpringResourceLoader;
23 import org.kuali.rice.kcb.service.GlobalKCBServiceLocator;
24 import org.kuali.rice.kcb.service.KCBServiceLocator;
25 import org.kuali.rice.test.BaselineTestCase;
26
27
28
29
30
31
32 public abstract class KCBTestCase extends BaselineTestCase {
33 protected KCBServiceLocator services;
34
35 public KCBTestCase() {
36 super("kcb");
37 }
38
39 @Override
40 public void setUp() throws Exception {
41 super.setUp();
42 services = GlobalKCBServiceLocator.getInstance();
43 }
44
45 @Override
46 protected Lifecycle getLoadApplicationLifecycle() {
47 SpringResourceLoader springResourceLoader = new SpringResourceLoader(new QName("KCBTestHarnessApplicationResourceLoader"), "classpath:KCBTestHarnessSpringBeans.xml", null);
48 springResourceLoader.setParentSpringResourceLoader(getTestHarnessSpringResourceLoader());
49 return springResourceLoader;
50 }
51
52 }