File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
spring-web/src/test/java/org/springframework/web/context/support Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .web .context .support ;
1818
19- import static org .hamcrest .CoreMatchers .equalTo ;
20- import static org .hamcrest .CoreMatchers .is ;
21- import static org .junit .Assert .assertThat ;
19+ import javax .naming .NamingException ;
2220
2321import org .junit .Test ;
2422import org .springframework .core .env .ConfigurableEnvironment ;
25- import org .springframework .core .env .StandardEnvironment ;
2623import org .springframework .core .env .MutablePropertySources ;
2724import org .springframework .core .env .PropertySource ;
25+ import org .springframework .core .env .StandardEnvironment ;
26+ import org .springframework .tests .mock .jndi .SimpleNamingContextBuilder ;
27+
28+ import static org .hamcrest .CoreMatchers .*;
29+ import static org .junit .Assert .*;
2830
2931/**
3032 * Unit tests for {@link StandardServletEnvironment}.
3537public class StandardServletEnvironmentTests {
3638
3739 @ Test
38- public void propertySourceOrder () {
40+ public void propertySourceOrder () throws Exception {
41+ SimpleNamingContextBuilder .emptyActivatedContextBuilder ();
42+
3943 ConfigurableEnvironment env = new StandardServletEnvironment ();
4044 MutablePropertySources sources = env .getPropertySources ();
4145
You can’t perform that action at this time.
0 commit comments