LeaveInfoServiceTest.java 956 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
package test.hospital.service;

import java.util.List;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.lyms.hospital.entity.leave.LeaveInfo;
import com.lyms.hospital.service.leave.LeaveInfoService;

import test.hospital.BaseServiceTest;

public class LeaveInfoServiceTest extends BaseServiceTest {
@Autowired
private LeaveInfoService service;
// @Test
// public void createLeaveInfo(){
// LeaveInfo leave = new LeaveInfo();
// leave.setWomanId("cs0330");
// leave.setAfterDaynum(5);
// service.createLeaveInfo(leave);
// }
// @Test
// public void update(){
// LeaveInfo leave = new LeaveInfo();
// leave.setId("A125273265034E968CCC12D353F32645");
// leave.setWomanId("cs6666");
// service.updateLeaveInfo(leave);
// }
@Test
public void list(){
List<LeaveInfo> list = service.listLeaveInfoByWomanId("cs6666");
System.out.println(list);
}

}