From a8f540ae8c0ee3d9e346dcc62130e8f332727776 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 8 Jan 2019 21:18:09 +0100 Subject: [PATCH] Restored original log4j.properties file reference in 4.3.x branch --- .../context/expression/ApplicationContextExpressionTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-context/src/test/java/org/springframework/context/expression/ApplicationContextExpressionTests.java b/spring-context/src/test/java/org/springframework/context/expression/ApplicationContextExpressionTests.java index 3eb87d7006..f04dd245e7 100644 --- a/spring-context/src/test/java/org/springframework/context/expression/ApplicationContextExpressionTests.java +++ b/spring-context/src/test/java/org/springframework/context/expression/ApplicationContextExpressionTests.java @@ -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);