Search in sources :

Example 1 with LangImpl

use of ninja.i18n.LangImpl in project ninja by ninjaframework.

the class ControllerMethodInvokerTest method setUp.

@Before
public void setUp() throws Exception {
    this.ninjaProperties = Mockito.spy(new NinjaPropertiesImpl(NinjaMode.test));
    this.lang = new LangImpl(this.ninjaProperties);
    this.validation = new ValidationImpl();
    when(this.context.getSession()).thenReturn(this.session);
    when(this.context.getFlashScope()).thenReturn(this.flash);
    when(this.context.getValidation()).thenReturn(this.validation);
}
Also used : NinjaPropertiesImpl(ninja.utils.NinjaPropertiesImpl) LangImpl(ninja.i18n.LangImpl) Before(org.junit.Before)

Example 2 with LangImpl

use of ninja.i18n.LangImpl in project ninja by ninjaframework.

the class ControllerMethodInvokerWithDeprecatedValidationTest method setUp.

@Before
public void setUp() throws Exception {
    this.ninjaProperties = Mockito.spy(new NinjaPropertiesImpl(NinjaMode.test));
    this.lang = new LangImpl(this.ninjaProperties);
    this.validation = new ValidationImpl();
    when(this.context.getSession()).thenReturn(this.session);
    when(this.context.getFlashScope()).thenReturn(this.flash);
    when(this.context.getValidation()).thenReturn(this.validation);
}
Also used : NinjaPropertiesImpl(ninja.utils.NinjaPropertiesImpl) LangImpl(ninja.i18n.LangImpl) Before(org.junit.Before)

Aggregations

LangImpl (ninja.i18n.LangImpl)2 NinjaPropertiesImpl (ninja.utils.NinjaPropertiesImpl)2 Before (org.junit.Before)2