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.edl;
18:
19: import org.junit.Ignore;
20: import org.junit.Test;
21: import org.kuali.workflow.test.WorkflowTestCase;
22:
23: public class EDocLiteScriptedTest extends WorkflowTestCase {
24: /**
25: * Would be nice to be able to specify data to load from the script
26: * but it has to be loaded here...
27: */
28: protected void loadTestData() throws Exception {
29: //loadXmlFile("EDocLiteStyle.xml");
30: loadXmlFile("edlstyle.xml");
31: loadXmlFile("widgets.xml");
32: // supply Group1 and Group2 for the test
33: loadXmlFile("GradSchoolTestUsersAndGroups.xml");
34: loadXmlFile("GradSchoolRoutingConfiguration.xml");
35: loadXmlFile("GradSchoolRules.xml");
36: loadXmlFile("GradSchoolEDL.xml");
37: }
38:
39: @Ignore("This test needs to be implemented!")
40: @Test
41: public void test() throws Exception {
42: // Map context = new HashMap();
43: // EDocLitePostProcessorListener listener = new EDocLitePostProcessorListener(context);
44: // listener.startListening();
45: // Thread t = new Thread(listener);
46: // t.setDaemon(true);
47: // t.start();
48: //
49: // Servlet servlet = new DelegatingWorkflowServlet(new EDocLiteServlet());
50: // Script script = new Script(getClass().getResourceAsStream("GradSchoolScript.xml"),
51: // new LocalWorkflowInteractionController(servlet));
52: //
53: // script.run(context);
54: //
55: // RouteHeaderService rhs = (RouteHeaderService) getService(SpringServiceLocator.DOC_ROUTE_HEADER_SRV);
56: // DocumentRouteHeaderValue v = rhs.getRouteHeader(new Long((String) context.get("docId")));
57: // //assertTrue(v.isApproved());
58: // assertTrue(v.isFinal());
59: }
60: }
|