⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jointestcase.java

📁 一个很好实用的工作流OSWORKFLOW开发例子.有着非常优秀的灵活性.
💻 JAVA
字号:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.workflow;import com.opensymphony.workflow.basic.BasicWorkflow;import junit.framework.TestCase;/** * @author hani Date: Feb 17, 2005 Time: 4:24:20 PM */public class JoinTestCase extends TestCase {    //~ Instance fields ////////////////////////////////////////////////////////    private Workflow workflow;    //~ Methods ////////////////////////////////////////////////////////////////    public void testWithReject() throws Exception {        checkRoute(new int[] {2, 3, 2, 4, 6, 7});    }    protected void setUp() throws Exception {        workflow = new BasicWorkflow("testuser");    }    private void checkRoute(int[] actions) throws Exception {        long workflowId = workflow.initialize(getClass().getResource("/samples/join.xml").toString(), 1, null);        for (int i = 0; i < actions.length; i++) {            workflow.doAction(workflowId, actions[i], null);        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -