personmanagertest.java

来自「这是一个jbpm的高级应用,是一个oa工作流的系统,里面用到了spring,hi」· Java 代码 · 共 32 行

JAVA
32
字号
package com.bjsxt.oa.managers;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.bjsxt.oa.model.Person;

import junit.framework.TestCase;

public class PersonManagerTest extends TestCase {
	private static BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext-*.xml");
	public void testSearchPersons() {
		fail("Not yet implemented");
	}

	public void testFindPerson() {
		fail("Not yet implemented");
	}

	public void testAddPerson() {
		PersonManager pm = (PersonManager)factory.getBean("personManager");
		Person person = new Person();
		person.setName("张三");
		pm.addPerson(person, 1);
	}

	public void testDelPerson() {
		fail("Not yet implemented");
	}

}

⌨️ 快捷键说明

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