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

📄 testfuture.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.execution.Future;import junit.framework.TestCase;public class TestFuture extends TestCase {	protected DomainObjectInterface future;	protected DomainObject domainObject;	public TestFuture(String arg0) {		super(arg0);	}	public static void main(String[] args) {		junit.swingui.TestRunner.run(TestFuture.class);	}	protected void setUp() throws Exception {		super.setUp();		domainObject = new DomainObject("a string");		future = (DomainObjectInterface) Future.newInstance(domainObject.getClass().getClassLoader(), domainObject, new Class[] { DomainObjectInterface.class });	}	public void testFuture() {		String ret = future.getString();		assertNotNull(ret);		assertEquals("getString() failed", true, "a string".equals(ret));		ret = future.concat(" right here");		assertEquals("asUppercase() failed", true, "a string".concat(" right here").equals(ret));	}}

⌨️ 快捷键说明

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