yeg
2026-09-05 7259e265b9237286996b09da03038ea5a133e1e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.battery.business.runtime;
 
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(",")));
    }
}