List of usage examples for org.springframework.beans.factory BeanCreationException getRootCause
@Nullable
public Throwable getRootCause()
From source file:com.cisco.cta.taxii.adapter.settings.SettingsConfigurationTest.java
@Test public void refuseMissingFeedNames() throws Exception { try (ConfigurableApplicationContext ctx = context(exclude(validProperties(), "taxiiService.feeds"))) { fail("The context creation must fail because of invalid configuration."); } catch (BeanCreationException e) { assertThat(e.getRootCause(), instanceOf(IllegalStateException.class)); }//from www . j a v a 2 s . c o m }