AdminApplicationTests.java
1.53 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
package cn.com.glsx.test;
import cn.com.glsx.Application;
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.Date;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class AdminApplicationTests {
/* @Autowired
private ElectricFenceService electricFenceService;
@Test
public void testAddFence() throws Exception {
ElectricFenceBO fenceBO = new ElectricFenceBO();
fenceBO.setFenceName("测试围栏");
fenceBO.setFenceNo(UUID.randomUUID().toString());
fenceBO.setBizFenceType(1);
fenceBO.setLocationType(0);
fenceBO.setShapeType(1);
fenceBO.setRadius(3000);
fenceBO.setLnglat("113.528632,22.443676");
fenceBO.setTriggerType(1);
fenceBO.setTimeType(0);
fenceBO.setStartTime(new Date());
fenceBO.setEndTime(new Date());
fenceBO.setEnableStatus(1);
fenceBO.setRemark("这是一个测试围栏");
fenceBO.setAreaCode("12213");
fenceBO.setAreaText("深圳");
fenceBO.setAnalysisAddress("深圳深南大道");
fenceBO.setTelNumbers("13800138000");
electricFenceService.addFence(fenceBO);
}*/
@Test
public void testUpdateFence() throws Exception {
}
}