package com.ruoyi.web.modules.epidemic.mapper;

import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.InputStream;
import org.apache.commons.io.IOUtils;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

@DisplayName("BizEpidemicReportMapper 大屏 SQL")
class BizEpidemicReportMapperScreenXmlTest
{

    @Test
    void containsScreenQueries() throws Exception
    {
        try (InputStream in = BizEpidemicReportMapperScreenXmlTest.class.getClassLoader()
                .getResourceAsStream("mapper/epidemic/BizEpidemicReportMapper.xml"))
        {
            String xml = IOUtils.toString(in, "UTF-8");
            assertTrue(xml.contains("selectByReportYear"));
            assertTrue(xml.contains("selectRelievedByReleaseYear"));
            assertTrue(xml.contains("selectActiveControlByReportYear"));
            assertTrue(xml.contains("selectDistinctReportYears"));
        }
    }
}
