package com.flightfeather.grid.external
|
|
import org.junit.jupiter.api.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
|
internal class ClueHttpServiceTest {
|
|
@Autowired
|
lateinit var clueHttpService: ClueHttpService
|
|
@Test
|
fun getClueFile() {
|
clueHttpService.getClueFile("10")
|
}
|
|
@Test
|
fun getClue() {
|
val res = clueHttpService.getClue("2024-08-04 00:00:00")
|
res.forEach {
|
println(it.clueName)
|
}
|
}
|
|
@Test
|
fun headTimeStamp() {
|
clueHttpService.headTimeStamp().forEach {
|
println(it.second)
|
}
|
|
}
|
}
|