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("BizLabDetectionMapper 大屏 SQL")
class BizLabDetectionMapperScreenXmlTest
{

    @Test
    void containsScreenQueries() throws Exception
    {
        try (InputStream in = BizLabDetectionMapperScreenXmlTest.class.getClassLoader()
                .getResourceAsStream("mapper/epidemic/BizLabDetectionMapper.xml"))
        {
            String xml = IOUtils.toString(in, "UTF-8");
            assertTrue(xml.contains("selectByTestYear"));
            assertTrue(xml.contains("selectDistinctTestYears"));
        }
    }
}
