|
@@ -28,6 +28,7 @@ import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -45,7 +46,29 @@ public class PrintingProjectServiceTest {
|
|
|
private JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
@Test
|
|
|
- public void pageTest() throws Exception {
|
|
|
+ public void savePrintingProjectTest() throws Exception {
|
|
|
+ PrintingProjectInfo info = new PrintingProjectInfo();
|
|
|
+ info.setId(1L);
|
|
|
+ info.setOrgId(1L);
|
|
|
+ info.setExamId(1L);
|
|
|
+ info.setOrgName("武汉大学");
|
|
|
+ info.setExamName("计算机考试");
|
|
|
+ info.setPmId(1L);
|
|
|
+ info.setPmName("雷布斯");
|
|
|
+ info.setSupplierId(1L);
|
|
|
+ info.setSupplierName("小米公司");
|
|
|
+ info.setPrepareStartTime(new Date());
|
|
|
+ info.setPrepareEndTime(new Date());
|
|
|
+ info.setPrintStartTime(new Date());
|
|
|
+ info.setPrintEndTime(new Date());
|
|
|
+ info.setMailStartTime(new Date());
|
|
|
+ info.setMailEndTime(new Date());
|
|
|
+ info.setCompleted(false);
|
|
|
+ printingProjectService.savePrintingProject(info);
|
|
|
+ }
|
|
|
+
|
|
|
+ //@Test
|
|
|
+ public void getPrintingProjectListTest() throws Exception {
|
|
|
PrintingProjectQuery query = new PrintingProjectQuery();
|
|
|
query.setOrgId(1L);
|
|
|
query.setExamId(1L);
|