RiskAssessmentServiceTest.java
1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package cn.com.glsx.admin.modules.service;
import cn.com.glsx.Application;
import cn.com.glsx.admin.modules.model.vo.*;
import cn.hutool.json.JSONUtil;
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.List;
import java.util.Set;
import static org.junit.Assert.*;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class RiskAssessmentServiceTest {
@Autowired
private RiskAssessmentService riskAssessmentService;
@Test
public void getStayPointList() {
List<StayPointListVO> stayPointList = riskAssessmentService.getStayPointList(67771L);
System.out.println("stayPointList = " + JSONUtil.toJsonStr(stayPointList));
}
@Test
public void getBasicInformation() {
BasicInformationVO basicInformation = riskAssessmentService.getBasicInformation(67771L);
System.out.println("basicInformation = " + JSONUtil.toJsonStr(basicInformation));
}
@Test
public void getResidentInformation() {
ResidentInformationVO residentInformation = riskAssessmentService.getResidentInformation(67771L);
System.out.println("residentInformation = " + JSONUtil.toJsonStr(residentInformation));
}
@Test
public void getAlarmInformation() {
Set<AlarmInformationVO> alarmInformation = riskAssessmentService.getAlarmInformation(67771L);
System.out.println("alarmInformation = " + JSONUtil.toJsonStr(alarmInformation));
}
@Test
public void getUserBehaviorInformation() {
UserBehaviorInformationVO userBehaviorInformation = riskAssessmentService.getUserBehaviorInformation(67771L);
System.out.println("userBehaviorInformation = " + JSONUtil.toJsonStr(userBehaviorInformation));
}
}