newsbotest.java

来自「测试工具ejb3unit的例子。使用时需要导入ejb3unit,jmock,lo」· Java 代码 · 共 30 行

JAVA
30
字号
package com.ejb3unit.entitytests;

import com.bm.datagen.Generator;
import com.bm.datagen.constant.ConstantIntegerGenerator;
import com.bm.testsuite.BaseEntityFixture;
import com.ejb3unit.NewsBo;

/**
 * This is an axample for fully automated entity bean testing. Beans are randomly
 * generated and written to an in momory database. Equals and hashcode
 * imlementations will be automatically checked. 
 * 
 * @author Daniel Wiese
 * @since 15.10.2006
 */
public class NewsBoTest extends BaseEntityFixture<NewsBo> {

	private static final Generator[] SPECIAL_GENERATORS = { new ConstantIntegerGenerator(
			870737) };

	/**
	 * 
	 * Constructor.
	 */
	public NewsBoTest() {
		super(NewsBo.class, SPECIAL_GENERATORS);
	}

}

⌨️ 快捷键说明

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