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(",")));
|
}
|
}
|