Search in sources :

Example 1 with MockRestartInitializer

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);
}
Also used : SpringApplication(org.springframework.boot.SpringApplication) MockRestartInitializer(org.springframework.boot.devtools.restart.MockRestartInitializer)

Aggregations

SpringApplication (org.springframework.boot.SpringApplication)1 MockRestartInitializer (org.springframework.boot.devtools.restart.MockRestartInitializer)1