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

📄 testcasesupport.java

📁 webwork source
💻 JAVA
字号:
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork;import java.io.InputStream;import java.io.OutputStream;import java.io.IOException;import junit.framework.TestCase;/** * @author Maurice C. Parker (maurice@vineyardenterprise.com) */public class TestCaseSupport extends TestCase {  public TestCaseSupport() {    super();  }	public TestCaseSupport(String testName) {		super(testName);	}	protected void fail(Exception e) {		e.printStackTrace();		fail(e.getMessage());	}  public void pipe(InputStream in, OutputStream out) throws IOException  {    byte[] buffer =  new byte[1024];    int lengthRead;    while((lengthRead = in.read(buffer)) >= 0)      out.write(buffer, 0, lengthRead);  }}

⌨️ 快捷键说明

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