fix tests
This commit is contained in:
parent
e2c76098ab
commit
be5ac17249
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue