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

📄 orgmanagertest.java

📁 采用比较流行的Struts2+spring+hibernate框架
💻 JAVA
字号:
package com.oa.model;

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

import com.oa.manager.OrgManager;

import junit.framework.TestCase;

public class OrgManagerTest extends TestCase {
	
	private static BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext-*.xml");

	public void testAddOrg() {
		
		OrgManager orgManager = (OrgManager)factory.getBean("orgManager");
		Organization org = new Organization();
		org.setName("测试机构");
		org.setDescription("没啥描述");
		
		orgManager.addOrg(org, 0);
	}

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

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

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

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

}

⌨️ 快捷键说明

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