Package org.springframework.boot.context.event

Examples of org.springframework.boot.context.event.ApplicationFailedEvent


    try {
      context.refresh();
      fail("Did not error");
    }
    catch (Exception ex) {
      this.initializer.onApplicationEvent(new ApplicationFailedEvent(
          new SpringApplication(), new String[0], context, ex));
    }

    assertThat(this.debugLog.size(), not(equalTo(0)));
    assertThat(this.infoLog.size(), equalTo(0));
View Full Code Here


    try {
      context.refresh();
      fail("Did not error");
    }
    catch (Exception ex) {
      this.initializer.onApplicationEvent(new ApplicationFailedEvent(
          new SpringApplication(), new String[0], context, ex));
    }

    assertThat(this.debugLog.size(), equalTo(0));
    assertThat(this.infoLog.size(), not(equalTo(0)));
View Full Code Here

    assertNotNull(context.getBean(ConditionEvaluationReport.class));
  }

  @Test
  public void noErrorIfNotInitialized() throws Exception {
    this.initializer.onApplicationEvent(new ApplicationFailedEvent(
        new SpringApplication(), new String[0], null, new RuntimeException(
            "Planned")));
    assertThat(this.infoLog.get(0),
        containsString("Unable to provide auto-configuration report"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.context.event.ApplicationFailedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.