Updated build to use new BeanFactory behavior.
This commit is contained in:
@@ -102,7 +102,7 @@ import org.xml.sax.SAXException;
|
||||
* <p>
|
||||
* This builder will setup a flow-local bean factory for the flow being constructed. That flow-local bean factory will
|
||||
* be populated with XML bean definitions contained in files referenced using the "import" element. The flow-local bean
|
||||
* factory will use the bean factory defing this flow builder as a parent. As such, the flow can access artifacts in
|
||||
* factory will use the bean factory defining this flow builder as a parent. As such, the flow can access artifacts in
|
||||
* either its flow-local bean factory or in the parent bean factory hierarchy, e.g. the bean factory of the dispatcher.
|
||||
*
|
||||
* @author Erwin Vervaet
|
||||
|
||||
@@ -75,7 +75,7 @@ public class XmlFlowBuilderNestingTests extends TestCase {
|
||||
assertSame(testService, action1.getTestService());
|
||||
assertSame(action1, testFlow2BeanFactory.getBean("action1"));
|
||||
assertSame(parentBeanFactory, ((HierarchicalBeanFactory) testFlow2BeanFactory).getParentBeanFactory());
|
||||
assertEquals(2, BeanFactoryUtils.countBeansIncludingAncestors(((ListableBeanFactory) testFlow2BeanFactory)));
|
||||
assertEquals(4, BeanFactoryUtils.countBeansIncludingAncestors((ListableBeanFactory) testFlow2BeanFactory));
|
||||
|
||||
Flow subFlow1 = ((SubflowState) flow.getState("subFlowState1")).getSubflow();
|
||||
assertNotSame(flow, subFlow1);
|
||||
|
||||
Reference in New Issue
Block a user