use of org.springframework.boot.devtools.restart.MockRestartInitializer in project spring-boot by spring-projects.
the class LocalDevToolsAutoConfigurationTests method initializeAndRun.
private ConfigurableApplicationContext initializeAndRun(Class<?> config, Map<String, Object> properties, String... args) {
Restarter.initialize(new String[0], false, new MockRestartInitializer(), false);
SpringApplication application = new SpringApplication(config);
application.setDefaultProperties(getDefaultProperties(properties));
return application.run(args);
}
Aggregations