📄 personmanagertest.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -