Added test for SpringProperties setFlag method
Issue: SPR-9014
Issue: SPR-11297
(cherry picked from commit 23249cd)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -44,6 +44,8 @@ import org.apache.commons.logging.LogFactory;
|
||||
*/
|
||||
public abstract class SpringProperties {
|
||||
|
||||
private static final String PROPERTIES_RESOURCE_LOCATION = "spring.properties";
|
||||
|
||||
private static final Log logger = LogFactory.getLog(SpringProperties.class);
|
||||
|
||||
private static final Properties localProperties = new Properties();
|
||||
@@ -52,7 +54,7 @@ public abstract class SpringProperties {
|
||||
static {
|
||||
try {
|
||||
ClassLoader cl = SpringProperties.class.getClassLoader();
|
||||
URL url = cl.getResource("spring.properties");
|
||||
URL url = cl.getResource(PROPERTIES_RESOURCE_LOCATION);
|
||||
if (url != null) {
|
||||
logger.info("Found 'spring.properties' file in local classpath");
|
||||
InputStream is = url.openStream();
|
||||
|
||||
Reference in New Issue
Block a user