@Test(expected = IllegalStateException.class) public final void assertThatGetObjectThrowsIllegalStateExceptionIfCalledBeforeAfterPropertiesSet() throws Exception { final ComposableXmlConfigFactoryBean objectUnderTest = newObjectUnderTest(); objectUnderTest.getObject(); }
@Override public Config getObject() throws Exception { checkState( this.product != null, "No Config has been created yet - did you remember to call afterPropertiesSet() when using this factory outside Spring?"); return this.product; }
ComposableXmlConfigFactoryBean implements FactoryBean<Config>,
        InitializingBean { @Override public Config getObject() throws Exception { checkState( this.product != null, "No Config has been created yet - did you remember to call afterPropertiesSet() when using this factory outside Spring?"); return this.product; } }
ComposableXmlConfigFactoryBean implements FactoryBean<Config>,
        InitializingBean { @Override public Config getObject() throws Exception { checkState( this.product != null, "No Config has been created yet - did you remember to call afterPropertiesSet() when using this factory outside Spring?"); return this.product; }  }
ComposableXmlConfigFactoryBean implements FactoryBean<Config>,
        InitializingBean { @Override public Config getObject() throws Exception { checkState( this.product != null, "No Config has been created yet - did you remember to call afterPropertiesSet() when using this factory outside Spring?"); return this.product; }  @Required final void setGlobalXmlConfigFile(final Resource globalXmlConfigFile); @Required final void setDataRootDirectory(final Resource dataRootDirectory); final void setDataFileSuffix(final String dataFileSuffix); @Override Config getObject(); @Override Class<?> getObjectType(); @Override boolean isSingleton(); @Override void afterPropertiesSet(); }
ComposableXmlConfigFactoryBean implements FactoryBean<Config>,
        InitializingBean { @Override public Config getObject() throws Exception { checkState( this.product != null, "No Config has been created yet - did you remember to call afterPropertiesSet() when using this factory outside Spring?"); return this.product; }  @Required final void setGlobalXmlConfigFile(final Resource globalXmlConfigFile); @Required final void setDataRootDirectory(final Resource dataRootDirectory); final void setDataFileSuffix(final String dataFileSuffix); @Override Config getObject(); @Override Class<?> getObjectType(); @Override boolean isSingleton(); @Override void afterPropertiesSet();  }