mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
+3
-1
@@ -111,9 +111,11 @@ public class DefaultListableBeanFactoryTests {
|
||||
|
||||
private static final Log factoryLog = LogFactory.getLog(DefaultListableBeanFactory.class);
|
||||
|
||||
|
||||
@Rule
|
||||
public ExpectedException thrown = ExpectedException.none();
|
||||
|
||||
|
||||
@Test
|
||||
public void testUnreferencedSingletonWasInstantiated() {
|
||||
KnowsIfInstantiated.clearInstantiationRecord();
|
||||
@@ -1199,7 +1201,7 @@ public class DefaultListableBeanFactoryTests {
|
||||
|
||||
RootBeanDefinition rbd = new RootBeanDefinition(PropertiesFactoryBean.class);
|
||||
MutablePropertyValues pvs = new MutablePropertyValues();
|
||||
pvs.add("locations", new String[]{"#{foo}"});
|
||||
pvs.add("locations", new String[] {"#{foo}"});
|
||||
rbd.setPropertyValues(pvs);
|
||||
bf.registerBeanDefinition("myProperties", rbd);
|
||||
Properties properties = (Properties) bf.getBean("myProperties");
|
||||
|
||||
Reference in New Issue
Block a user