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 enablesSimulatorSchedulingForDefaultDevelopmentStartup() 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", "dev-simulator"), List.of(String.valueOf(profiles).split(","))); } }