package com.flightfeather.uav.socket
|
|
import com.flightfeather.uav.socket.processor.UnderwayProcessor
|
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
|
|
/**
|
* @author riku
|
* Date: 2019/9/16
|
*/
|
@RunWith(SpringRunner::class)
|
@SpringBootTest
|
class UnderwayProcessorTest {
|
|
@Autowired
|
lateinit var messageManager: UnderwayProcessor
|
|
@Test
|
fun bccCheck() {
|
val s = "23 23 2 31 37 36 39 31 35 33 31 39 30 39 31 32 30 30 30 36 1 1 0 42 13 9 f 12 34 8 2 0 8b 1c 0 d8 0 0 12 d8 9 6c 0 c8 0 b4 0 0 66 0 0 0 0 0 0 73 0 0 0 b9 4 32 0 2e d8 c4 0 0 0 0 80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 f6"
|
println(messageManager.bccCheck(s))
|
}
|
}
|