fix tests

This commit is contained in:
Marek Lewandowski 2016-11-16 19:56:38 +01:00
parent e2c76098ab
commit be5ac17249
2 changed files with 2 additions and 2 deletions

View File

@ -13,11 +13,11 @@ public class BeanFactoryWithClassPathResourceTest {
@Test
public void createBeanFactoryAndCheckEmployeeBean() {
Resource res = new ClassPathResource("spring-app.xml");
Resource res = new ClassPathResource("beanfactory-example.xml");
BeanFactory factory = new XmlBeanFactory(res);
Employee emp = (Employee) factory.getBean("employee");
assertFalse(factory.isSingleton("employee"));
assertTrue(factory.isSingleton("employee"));
assertTrue(factory.getBean("employee") instanceof Employee);
assertTrue(factory.isTypeMatch("employee", Employee.class));
assertTrue(factory.getAliases("employee").length > 0);