File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/test/java/org/springframework/core/env Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2014 the original author or authors.
2+ * Copyright 2002-2019 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1919import static org .springframework .beans .factory .support .BeanDefinitionBuilder .rootBeanDefinition ;
2020
2121import org .junit .Test ;
22- import org .springframework .beans .factory .config .PropertyPlaceholderConfigurer ;
2322import org .springframework .context .support .GenericApplicationContext ;
2423
25- @ SuppressWarnings ("resource" )
2624public class PropertyPlaceholderConfigurerEnvironmentIntegrationTests {
25+
2726 @ Test
27+ @ SuppressWarnings ("deprecation" )
2828 public void test () {
2929 GenericApplicationContext ctx = new GenericApplicationContext ();
3030 ctx .registerBeanDefinition ("ppc" ,
31- rootBeanDefinition (PropertyPlaceholderConfigurer .class )
31+ rootBeanDefinition (org . springframework . beans . factory . config . PropertyPlaceholderConfigurer .class )
3232 .addPropertyValue ("searchSystemEnvironment" , false )
3333 .getBeanDefinition ());
3434 ctx .refresh ();
3535 ctx .getBean ("ppc" );
36+ ctx .close ();
3637 }
38+
3739}
You can’t perform that action at this time.
0 commit comments