jxdserviceimpltest.java
来自「人力资源管理系统」· Java 代码 · 共 75 行
JAVA
75 行
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 + =
减小字号Ctrl + -
显示快捷键?