Skip to content

Commit be5ac17

Browse files
committed
fix tests
1 parent e2c7609 commit be5ac17

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎spring-core/src/test/java/com/baeldung/beanfactory/BeanFactoryWithClassPathResourceTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ public class BeanFactoryWithClassPathResourceTest {
1313

1414
@Test
1515
public void createBeanFactoryAndCheckEmployeeBean() {
16-
Resource res = new ClassPathResource("spring-app.xml");
16+
Resource res = new ClassPathResource("beanfactory-example.xml");
1717
BeanFactory factory = new XmlBeanFactory(res);
1818
Employee emp = (Employee) factory.getBean("employee");
1919

20-
assertFalse(factory.isSingleton("employee"));
20+
assertTrue(factory.isSingleton("employee"));
2121
assertTrue(factory.getBean("employee") instanceof Employee);
2222
assertTrue(factory.isTypeMatch("employee", Employee.class));
2323
assertTrue(factory.getAliases("employee").length > 0);

spring-core/src/main/java/com/baeldung/beanfactory/spring-app.xml renamed to spring-core/src/test/resources/beanfactory-example.xml

File renamed without changes.

0 commit comments

Comments
 (0)