Restored original log4j.properties file reference in 4.3.x branch

This commit is contained in:
Juergen Hoeller
2019-01-08 21:18:09 +01:00
parent 9767165c8d
commit a8f540ae8c

View File

@@ -326,10 +326,10 @@ public class ApplicationContextExpressionTests {
@Test
public void resourceInjection() throws IOException {
System.setProperty("logfile", "do_not_delete_me.txt");
System.setProperty("logfile", "log4j.properties");
try (AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(ResourceInjectionBean.class)) {
ResourceInjectionBean resourceInjectionBean = ac.getBean(ResourceInjectionBean.class);
Resource resource = new ClassPathResource("do_not_delete_me.txt");
Resource resource = new ClassPathResource("log4j.properties");
assertEquals(resource, resourceInjectionBean.resource);
assertEquals(resource.getURL(), resourceInjectionBean.url);
assertEquals(resource.getURI(), resourceInjectionBean.uri);