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

📄 testtraintypeservice.java

📁 HR系统模拟企业对内部职员的管理
💻 JAVA
字号:
package org.operamasks.example.hr.test;import static org.junit.Assert.fail;import java.util.UUID;import org.junit.After;import org.junit.Before;import org.junit.Test;import org.operamasks.example.ejb.hr.entity.TrainType;import org.operamasks.example.ejb.hr.service.ITrainTypeService;public class TestTrainTypeService {	private ITrainTypeService trainTypeService;	@Test	public void testCreateTrainType() {		String[] datas = {"内部培训", "外部培训", "定向培训"};				for(String data : datas) {			TrainType type = new TrainType();			type.setId(UUID.randomUUID().toString());			type.setName(data);			trainTypeService.createTrainType(type);		}	}	@Test	public void testModifyTrainType() {		fail("Not yet implemented");	}	@Test	public void testRemoveTrainType() {		fail("Not yet implemented");	}	@Test	public void testListTrainType() {		fail("Not yet implemented");	}	@Before	public void setUp() throws Exception {		java.util.Properties p = new java.util.Properties();		p.put(javax.naming.Context.PROVIDER_URL, "iiop://127.0.0.1:6888");		p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.apusic.naming.jndi.CNContextFactory");		javax.naming.InitialContext initCtx = new javax.naming.InitialContext(p);		this.trainTypeService = (ITrainTypeService) initCtx.lookup("org.operamasks.example.hr.service.TrainTypeService");	}	@After	public void tearDown() throws Exception {		this.trainTypeService=null;	}}

⌨️ 快捷键说明

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