assertEquals("GenericBeanFactory", bean.getBean());
}
public void testDeploymentWithMultipleBeanMetaDataFactorys() throws Exception
{
AbstractKernelDeployment deployment = unmarshalDeployment();
assertEquals("SimpleDeployment", deployment.getName());
assertNull(deployment.getClassLoader());
List<?> beanFactories = deployment.getBeanFactories();
assertNotNull(beanFactories);
assertEquals(3, beanFactories.size());
BeanMetaDataFactory factory = (BeanMetaDataFactory) beanFactories.get(0);
assertEquals(TestBeanMetaDataFactory.class.getName(), factory.getClass().getName());
factory = (BeanMetaDataFactory) beanFactories.get(1);
assertEquals(TestBeanMetaDataFactory1.class.getName(), factory.getClass().getName());
factory = (BeanMetaDataFactory) beanFactories.get(2);
assertEquals(TestBeanMetaDataFactory2.class.getName(), factory.getClass().getName());
List<?> beans = deployment.getBeans();
assertNotNull(beans);
assertEquals(6, beans.size());
BeanMetaData bean = (BeanMetaData) beans.get(0);
assertNotNull(bean);
assertEquals("Bean1", bean.getBean());