feiyu02
2023-10-24 77178b576d748fb0f7223fbab4ade8b12d625ed2
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
package com.flightfeather.monitor.analysis.dust
 
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
import java.time.LocalDate
 
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@SpringBootTest
class StatisticAnalysisControllerTest {
    @Autowired
    lateinit var statisticAnalysisController: StatisticAnalysisController
 
    @Test
    fun dailyStatics() {
        val d = LocalDate.of(2023, 7, 2)
        statisticAnalysisController.dailyStatics(d)
    }
 
    @Test
    fun monthlyStatics() {
        val d = LocalDate.of(2023, 7, 1)
        statisticAnalysisController.monthlyStatics(d)
    }
 
    @Test
    fun autoRunDailyStatics() {
        statisticAnalysisController.autoRunDailyStatics()
    }
 
    @Test
    fun autoRunMonthlyStatics() {
        statisticAnalysisController.autoRunMonthlyStatics()
    }
}