| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- package com.coffee.admin;
- import com.coffee.bus.controller.BusDeviceRunningController;
- import com.coffee.bus.entity.BusDeviceRunningEntity;
- import com.coffee.bus.service.LocalBusDeviceRunningService;
- import org.junit.Test;
- import org.junit.runner.RunWith;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.boot.test.context.SpringBootTest;
- import org.springframework.test.context.junit4.SpringRunner;
- import java.util.List;
- /**
- * @author lifang
- * @version 1.0.0
- * @ClassName BusHospitalTest.java
- * @Description TODO
- * @createTime 2022年03月19日 10:27:00
- */
- @RunWith(SpringRunner.class)
- @SpringBootTest(classes = AdminApplication.class)
- public class BusNetpumpTest {
- @Autowired
- private LocalBusDeviceRunningService netPumpService;
- @Autowired
- private BusDeviceRunningController netPumpController;
- @Test
- public void save(){
- // StpUtil.login();
- BusDeviceRunningEntity netPumpEntity = new BusDeviceRunningEntity();
- // netPumpEntity.setWarn(NetPumpWarnEnum.ComingEnd);
- netPumpEntity.setId("1507903748141658113");
- netPumpEntity.setAlias("1");
- netPumpEntity.setBedNo("1");
- netPumpEntity.setDeviceId("123");
- netPumpEntity.setTenantId("123");
- netPumpService.updateById(netPumpEntity);
- }
- @Test
- public void query(){
- List<BusDeviceRunningEntity> list = netPumpService.list();
- System.out.println(list);
- }
- @Test
- public void Delete(){
- // boolean b = busHospitalService.removeById(1505789328745721857L);
- // System.out.println(b);
- }
- }
|