package cn.flightfeather.supervision.lightshare.service.Impl
|
|
import cn.flightfeather.supervision.lightshare.service.EvaluationService
|
import org.junit.Test
|
|
import org.junit.Assert.*
|
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 EvaluationServiceImplTest {
|
|
@Autowired
|
lateinit var evaluationService: EvaluationService
|
|
@Test
|
fun getTotalPoints() {
|
val r = evaluationService.getTotalPoints("xB32EtpuxU5bOzq5", 2, "2021-01-01", "2021-04-01",7,"3mbioCjN6XAAHveR",null)
|
println(r)
|
}
|
|
@Test
|
fun getCreditInfo() {
|
val r = evaluationService.getCreditInfo("UwTaWXneBoTby6bH")
|
println(r)
|
}
|
}
|