Example usage for org.apache.shiro.web.env EnvironmentLoader initEnvironment

List of usage examples for org.apache.shiro.web.env EnvironmentLoader initEnvironment

Introduction

In this page you can find the example usage for org.apache.shiro.web.env EnvironmentLoader initEnvironment.

Prototype

public WebEnvironment initEnvironment(ServletContext servletContext) throws IllegalStateException 

Source Link

Document

Initializes Shiro's WebEnvironment instance for the specified ServletContext based on the #CONFIG_LOCATIONS_PARAM value.

Usage

From source file:org.panifex.security.shiro.env.ModularEnvironmentLoaderTest.java

License:Open Source License

@Test(expected = IllegalStateException.class)
public void testCreateEnvironmentWithoutPreparedModularWebEnvironment() {
    EnvironmentLoader loader = new ModularEnvironmentLoader();

    loader.initEnvironment(servletContextMock);
}