feiyu02
2024-08-13 b8cc591541b88dd2bb93f111f8e8075842dce7ca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package cn.flightfeather.supervision.lightshare.service.impl
 
import cn.flightfeather.supervision.SupervisionApplication
import cn.flightfeather.supervision.lightshare.service.SubtaskService
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.SpringJUnit4ClassRunner
 
@RunWith(SpringJUnit4ClassRunner::class)
@SpringBootTest(classes = [SupervisionApplication::class])
class SubtaskServiceImplTest {
 
    @Autowired
    lateinit var subtaskService: SubtaskService
 
    @Test
    fun getByTopTaskAndDate() {
        val r = subtaskService.getByTopTaskAndDate("byY066cTKdBxZmKB", "2021-02-01", "2021-02-31")
        println(r)
    }
}