Java 类org.springframework.boot.devtools.restart.FailureHandler 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:LocalDevToolsAutoConfigurationTests.java   
@Test
public void restartTriggeredOnClassPathChangeWithRestart() throws Exception {
    this.context = initializeAndRun(Config.class);
    ClassPathChangedEvent event = new ClassPathChangedEvent(this.context,
            Collections.<ChangedFiles>emptySet(), true);
    this.context.publishEvent(event);
    verify(this.mockRestarter.getMock()).restart(any(FailureHandler.class));
}
项目:spring-boot-concourse    文件:LocalDevToolsAutoConfigurationTests.java   
@Test
public void restartTriggeredOnClassPathChangeWithRestart() throws Exception {
    this.context = initializeAndRun(Config.class);
    ClassPathChangedEvent event = new ClassPathChangedEvent(this.context,
            Collections.<ChangedFiles>emptySet(), true);
    this.context.publishEvent(event);
    verify(this.mockRestarter.getMock()).restart(any(FailureHandler.class));
}
项目:contestparser    文件:LocalDevToolsAutoConfigurationTests.java   
@Test
public void restartTriggeredOnClassPathChangeWithRestart() throws Exception {
    this.context = initializeAndRun(Config.class);
    ClassPathChangedEvent event = new ClassPathChangedEvent(this.context,
            Collections.<ChangedFiles>emptySet(), true);
    this.context.publishEvent(event);
    verify(this.mockRestarter.getMock()).restart(any(FailureHandler.class));
}