RemoteGpsBsServiceTest.java
1.02 KB
package cn.com.glsx.admin.modules.remote;
import cn.com.glsx.Application;
import cn.com.glsx.devicemonitor.api.dto.response.GpsBsData;
import cn.hutool.json.JSONUtil;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
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.Map;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class RemoteGpsBsServiceTest {
@Autowired
private RemoteGpsBsService remoteGpsBsService;
@Test
public void getLastGpsBsBatchBySns() {
Map<String, GpsBsData> lastGpsBsBatchBySns = remoteGpsBsService.getLastGpsBsBatchBySns(Lists.newArrayList("1700151515"));
System.out.println("lastGpsBsBatchBySns = " + JSONUtil.toJsonStr(lastGpsBsBatchBySns));
}
}