📄 jxdserviceimpltest.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 + -