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

📄 jxdserviceimpltest.java

📁 人力资源管理系统
💻 JAVA
字号:
package org.HumanResManSys.service;

import static org.junit.Assert.*;

import org.HumResManSys.service.JxdService;
import org.HumResManSys.vo.Jxd;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.List;

public class JxdServiceImplTest {

	@Test
	public void testSaveEvaluate() {
		try{
	
		}catch(Exception e ){
			e.printStackTrace();
		}
	}
	

	@Test
	public void testQueryEmployeesInTheSameDept() {
		try{
			ApplicationContext ac=
				new ClassPathXmlApplicationContext("/applicationContext.xml");
			JxdService j=(JxdService)ac.getBean("JxdService");
//			List list=j.queryEmployeesInTheSameDept("人事部门");
//			System.out.println(list.size());
		}catch(Exception e ){
			e.printStackTrace();
		}
	}

	@Test
	public void testGetOneEmployeeTotalMark() {
		try{
			ApplicationContext ac=
				new ClassPathXmlApplicationContext("/applicationContext.xml");
			JxdService j=(JxdService)ac.getBean("JxdService");
//			double i=j.getOneEmployeeTotalMark("zhao1", "08/17");
//			System.out.println(i);
		}catch(Exception e ){
			e.printStackTrace();
		}
	}

	@Test
	public void testGetAllEmployeesAverageMark() {
		try{
			ApplicationContext ac=
				new ClassPathXmlApplicationContext("/applicationContext.xml");
			JxdService j=(JxdService)ac.getBean("JxdService");
			double i=j.getAllEmployeesAverageMark("08/17");
			System.out.println(i);
		}catch(Exception e ){
			e.printStackTrace();
		}
	}
	
	@Test
	public void testDisplayAllEmpEvaluate(){
		try{
			ApplicationContext ac=
				new ClassPathXmlApplicationContext("/applicationContext.xml");
			
		}catch(Exception e ){
			e.printStackTrace();
		}
	}

}

⌨️ 快捷键说明

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