01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.routemanager;
18:
19: import org.kuali.workflow.test.WorkflowTestCase;
20:
21: import edu.iu.uis.eden.KEWServiceLocator;
22: import edu.iu.uis.eden.clientapp.WorkflowDocument;
23: import edu.iu.uis.eden.clientapp.vo.NetworkIdVO;
24: import edu.iu.uis.eden.doctype.DocumentTypeService;
25: import edu.iu.uis.eden.messaging.MessageQueueService;
26: import edu.iu.uis.eden.messaging.PersistedMessage;
27: import edu.iu.uis.eden.routeheader.DocumentRouteHeaderValue;
28: import edu.iu.uis.eden.routeheader.RouteHeaderService;
29: import edu.iu.uis.eden.test.TestUtilities;
30:
31: /**
32: * @author ewestfal
33: */
34: public abstract class RouteManagerTestCase extends WorkflowTestCase {
35:
36: // protected PersistedMessage makeNewRouteQueue() throws Exception {
37: // WorkflowDocument document = new WorkflowDocument(new NetworkIdVO("rkirkend"), "TestDocumentType");
38: // document.saveRoutingData();
39: // DocumentRouteHeaderValue routeHeader = KEWServiceLocator.getRouteHeaderService().getRouteHeader(document.getRouteHeaderId());
40: // PersistedMessage routeQueue = TestUtilities.createRouteQueue(routeHeader);
41: // return routeQueue;
42: // }
43:
44: protected String getAltAppContextFile() {
45: return "edu/iu/uis/eden/routequeue/RouteQueueSpring.xml";
46: }
47:
48: protected DocumentTypeService getDocumentTypeService() {
49: return (DocumentTypeService) KEWServiceLocator
50: .getService(KEWServiceLocator.DOCUMENT_TYPE_SERVICE);
51: }
52:
53: protected RouteHeaderService getRouteHeaderService() {
54: return (RouteHeaderService) KEWServiceLocator
55: .getService(KEWServiceLocator.DOC_ROUTE_HEADER_SRV);
56: }
57:
58: protected MessageQueueService getRouteQueueService() {
59: return (MessageQueueService) KEWServiceLocator
60: .getService(KEWServiceLocator.ROUTE_QUEUE_SRV);
61: }
62:
63: // protected RouteManagerQueueService getRouteManagerQueueService() {
64: // return (RouteManagerQueueService)SpringServiceLocator.getService(SpringServiceLocator.ROUTE_MANAGER_QUEUE_SERVICE);
65: // }
66:
67: }
|