package com.izouma.jiashanxia.service;

import com.izouma.jiashanxia.dto.StatisticDTO;
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;

import java.util.List;

@SpringBootTest
@RunWith(SpringRunner.class)
public class StatisticServiceTest {
    @Autowired
    private StatisticService statisticService;

    @Test
    public void dayData() {
        List<StatisticDTO> dtos = statisticService.dayData(7);
        dtos.forEach(System.out::println);
    }
}