erpproducttest.java
来自「anewssystem新闻发布系统集成使用了spring hibernate f」· Java 代码 · 共 48 行
JAVA
48 行
package anni.aerp.domain;
import junit.framework.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class ErpProductTest extends TestCase {
protected static Log logger = LogFactory.getLog(ErpProductTest.class);
@Override
protected void setUp() {
}
@Override
protected void tearDown() {
}
public void testFields() {
ErpProduct entity = new ErpProduct();
entity.setId(null);
assertNull(entity.getId());
entity.setName(null);
assertNull(entity.getName());
entity.setCode(null);
assertNull(entity.getCode());
entity.setType(null);
assertNull(entity.getType());
entity.setBuyPrice(null);
assertNull(entity.getBuyPrice());
entity.setSalePrice(null);
assertNull(entity.getSalePrice());
entity.setUnit(null);
assertNull(entity.getUnit());
entity.setPic(null);
assertNull(entity.getPic());
entity.setStatus(null);
assertNull(entity.getStatus());
entity.setDescn(null);
assertNull(entity.getDescn());
entity.setInputMan(null);
assertNull(entity.getInputMan());
entity.setInputTime(null);
assertNull(entity.getInputTime());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?