package cn.novalon.gym.manage.sys.config;

import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import io.r2dbc.spi.ConnectionFactory;
import org.mockito.Mockito;

/**
 * 单元测试配置类
 * 
 * @author 张翔
 * @date 2026-03-14
 */
@TestConfiguration
public class UnitTestConfig {

    @Bean
    @Primary
    public ConnectionFactory testConnectionFactory() {
        return Mockito.mock(ConnectionFactory.class);
    }
}
