Example usage for org.springframework.web.servlet.i18n CookieLocaleResolver getCookieName

List of usage examples for org.springframework.web.servlet.i18n CookieLocaleResolver getCookieName

Introduction

In this page you can find the example usage for org.springframework.web.servlet.i18n CookieLocaleResolver getCookieName.

Prototype

@Nullable
public String getCookieName() 

Source Link

Document

Return the given name for cookies created by this generator.

Usage

From source file:it.f2informatica.webapp.test.context.WebApplicationContextTest.java

@Test
public void localeResolver() {
    CookieLocaleResolver cookieLocaleResolver = webApplicationConfig.localeResolver();
    assertThat(cookieLocaleResolver.getCookieName()).isEqualTo("CURRENT_LOCALE");
}