assertCallbacks(expected, factory.getUninstallCallbacks());
}
public void testBeanFactoryWithUninstallCallbacks() throws Exception
{
GenericBeanFactoryMetaData factory = unmarshalBeanFactory("BeanFactoryWithUninstallCallbacks.xml");
assertNull(factory.getName());
assertEquals("Dummy", factory.getBean());
assertNull(factory.getMode());
assertNull(factory.getAnnotations());
assertNull(factory.getClassLoader());
assertNull(factory.getConstructor());
assertNull(factory.getConstructor());
assertNull(factory.getProperties());
assertNull(factory.getProperties());
assertNull(factory.getCreate());
assertNull(factory.getStart());
assertNull(factory.getDemands());
assertNull(factory.getSupplies());
assertNull(factory.getInstalls());
assertNull(factory.getUninstalls());
assertNull(factory.getInstallCallbacks());
ArrayList<String> expected = new ArrayList<String>();
expected.add("Uninstall1");
expected.add("Uninstall2");
expected.add("Uninstall3");
assertCallbacks(expected, factory.getUninstallCallbacks());
}