import cn.reghao.tnb.search.esapp.EsSearchApplication;
import cn.reghao.tnb.search.esapp.log.db.AccessLogMongo;
import cn.reghao.tnb.search.esapp.log.model.po.AccessLog;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;

import java.util.List;

/**
 * @author reghao
 * @date 2025-08-27 20:58:22
 */
@Slf4j
@ActiveProfiles("dev")
@SpringBootTest(classes = EsSearchApplication.class)
public class LogTest {
    @Autowired
    AccessLogMongo accessLogMongo;
    @Test
    public void logTest() {
        List<AccessLog> accessLogList = accessLogMongo.findAll();
    }
}
