提交 d759eb9d authored 作者: 邓砥奕's avatar 邓砥奕

添加维修测试

上级 84b75637
package com.tykj.dev.repair;
import com.tykj.dev.device.repair.subject.vo.RepairBillSaveVo;
import com.tykj.dev.union.BaseTest;
import org.junit.jupiter.api.Test;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.context.ActiveProfiles;
import java.util.ArrayList;
import java.util.List;
@SuppressWarnings("ALL")
@WithMockUser(username = "shena", password = "qwer1234", authorities = "省A专管员")
@ActiveProfiles("dev")
public class RepairControllerTest extends BaseTest {
@Test
void createRepairTest() throws Exception{
RepairBillSaveVo repairBillSaveVo = new RepairBillSaveVo();
repairBillSaveVo.setStartUseraId(5);
repairBillSaveVo.setStartUserbId(6);
repairBillSaveVo.setApplyNumber("qweqwe");
repairBillSaveVo.setAgent("sadad");
repairBillSaveVo.setReceiveUnit("市机要局");
List<Integer> ids = new ArrayList<>();
ids.add(21);
ids.add(26);
// repairBillSaveVo.setDeviceList(ids);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论