yeg
2026-09-04 b41d317e9b76b1158a9d21257698e55194bb39f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.ruoyi.config;
 
import static org.junit.jupiter.api.Assertions.assertEquals;
 
import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.boot.env.YamlPropertySourceLoader;
import org.springframework.core.io.ClassPathResource;
 
class DevelopmentSimulatorProfileContractTest
{
    @Test
    void usesNoDeviceProfileByDefault() throws Exception
    {
        var sources = new YamlPropertySourceLoader().load("application", new ClassPathResource("application.yml"));
        Object profiles = sources.get(0).getProperty("spring.profiles.active");
 
        assertEquals(List.of("druid"), List.of(String.valueOf(profiles).split(",")));
    }
}