feiyu02
2022-09-23 497475defd5d0ebf90ae6a8e2b080a16d78043ab
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
56
57
58
59
60
61
62
63
package cn.flightfeather.supervision
 
 
import cn.flightfeather.supervision.domain.mapper.ParticipantMapper
import cn.flightfeather.supervision.lightshare.service.DeviceService
import org.junit.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit.jupiter.SpringExtension
import org.springframework.test.context.junit4.SpringRunner
 
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@SpringBootTest
class SupervisionApplicationTests {
 
    @Autowired
    private lateinit var participantMapper: ParticipantMapper
 
    @Autowired
    private lateinit var deviceService: DeviceService
 
    @Test
    fun contextLoads() {
 
    }
 
//    @Test
//    @Throws(Exception::class)
//    fun test1() {
//        //manager.startServer(args[0]);
//        val uuid = UUIDGenerator.generateUUID(4)
//        print(uuid)
//    }
//
//    @Test
//    fun foo1() {
//        val json = "{\"msgType\": 1, \"msgVoList\": [{\"time\": 2019-11-12}, {\"time\": 2019-11-13}]}"
//        val m = GsonJsonParser().parseMap(json)
//    }
//
//    @Test
//    fun foo2() {
//        val r = participantMapper.selectAsUserInfo("qwDEAdhNPvQh0yEp", "BfKQclliGvfKc91i")
//        println(r)
//    }
//
//    @org.junit.Test
//    fun fetchData() {
//        fetchController.run()
////        val read = BufferedReader(InputStreamReader(System.`in`))
////        val s = read.readLine()
//    }
 
    @Test
    fun foo3() {
        val l = deviceService.getLatestHourValue("nVMiV6i1UvLqahOc")
        println(l)
    }
 
}