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

📄 testactivity.java

📁 一个很好的微工作流内核
💻 JAVA
字号:
/* * 	  *  Copyright (c) 2002, 2003 Dragos Manolescu (dam@micro-workflow.com) *  *  See the LICENSE file for licensing information. */package com.microworkflow.test;import com.microworkflow.process.*;import junit.framework.TestCase;public abstract class TestActivity extends TestCase {	protected static final String O1_KEY = "object1";	WorkflowContext context, wc;	Workflow workflow;	public TestActivity(String arg0) {		super(arg0);	}	public static void main(String[] args) {		junit.swingui.TestRunner.run(TestActivity.class);	}	protected void setUp() throws Exception {		super.setUp();		context = new WorkflowContext();		context.put(O1_KEY, new DomainObject(DomainObject.TEST_STRING));		context.put("argument1", "first argument");		context.put("argument2", "second argument");		context.put("true", new Boolean(true));		context.put("false", new Boolean(false));		workflow = new Workflow();	}	protected void tearDown() throws Exception {		super.tearDown();	}		protected WorkflowContext executeWorkflow(Activity definition) {		workflow.setDefinition(definition);		return workflow.executeWith(context);	}}

⌨️ 快捷键说明

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