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

📄 simpleinittest.java

📁 《基于Eclipse的开源框架技术与实战》[第2章]随书源码
💻 JAVA
字号:
package com.free.test.init;

import junit.framework.TestCase;

/**
 * <p>Title: Eclipse Plugin Development</p>
 * <p>Description: Free download</p>
 * <p>Copyright: Copyright (c) 2006</p>
 * <p>Company: Free</p>
 * @author gan.shu.man
 * @version 1.0
 */

public class SimpleInitTest extends TestCase {

	static String initField = "";
	
	/**
	 * 执行初始化操作
	 * */
	protected void setUp() throws Exception {
		//打印出当前的执行方法
		System.out.println("  setUp:"+getName());
		initField = "setup";
	}

	/**
	 * 执行清理操作
	 * */
	protected void tearDown() throws Exception {
		System.out.println("  tearDown: "+initField);
		initField = "";
	}
	
	public void testSimpleInit1() {
		System.out.println("    testSimpleInit1: "+initField);
		initField = getName();
		assertTrue(true);
	}
	
	public void testSimpleInit2() {
		System.out.println("    testSimpleInit2: "+initField);
		initField = getName();
		assertTrue(true);
	}

}

⌨️ 快捷键说明

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