Commit 83dd7c09 by yangll

添加测试用例

1 parent c56891d6
package cn.com.glsx.devicemonitor.modules.service.impl;
import cn.com.glsx.Application;
import cn.com.glsx.devicemonitor.modules.model.TrackInfoDTO;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.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;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class EShieldServiceTest {
@Autowired
private EShieldService eShieldService;
@Test
public void TestGetDeviceBySn() {
TrackInfoDTO deviceBySn = eShieldService.getDeviceBySn("45106800001");
System.out.println("deviceBySn = " + JSONUtil.toJsonStr(deviceBySn));
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!