Package org.springframework.core.env

Examples of org.springframework.core.env.DummyEnvironment


    assertThat(defaultEnv, notNullValue());
    ConfigurableEnvironment env1 = new StandardServletEnvironment();
    servlet.setEnvironment(env1); // should succeed
    assertThat(servlet.getEnvironment(), sameInstance(env1));
    try {
      servlet.setEnvironment(new DummyEnvironment());
      fail("expected IllegalArgumentException for non-configurable Environment");
    }
    catch (IllegalArgumentException ex) {
    }
    class CustomServletEnvironment extends StandardServletEnvironment { }
View Full Code Here

TOP

Related Classes of org.springframework.core.env.DummyEnvironment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.