Package org.strecks.message

Examples of org.strecks.message.MessageResourcesHelper


    InjectionWrapper inputWrapper = inputs.get("namedHelper");

    ActionContext injectionContext = new TestContextImpl(request, null, context, null, null);
    inputWrapper.inject(action, injectionContext);
    MessageResourcesHelper namedHelper = action.getNamedHelper();
   
    namedHelper.getMessage("some.key");
   
    verify(context);
    verify(request);
    verify(moduleConfig);
    verify(messageResources);

    assert namedHelper != null;
    assert namedHelper instanceof MessageResourcesHelperImpl;
    assert namedHelper.getMessageResources() == messageResources;
    assert namedHelper.getLocale() == locale;

  }
View Full Code Here


    InjectionWrapper inputWrapper = inputs.get("defaultHelper");

    ActionContext injectionContext = new TestContextImpl(request, null, context, null, null);
    inputWrapper.inject(action, injectionContext);
    MessageResourcesHelper defaultHelper = action.getDefaultHelper();
    defaultHelper.getMessage("some.key");

    verify(context);
    verify(request);
    verify(moduleConfig);
    verify(messageResources);

    assert defaultHelper != null;
    assert defaultHelper instanceof MessageResourcesHelperImpl;
    assert defaultHelper.getMessageResources() == messageResources;
    assert defaultHelper.getLocale() == locale;

  }
View Full Code Here

TOP

Related Classes of org.strecks.message.MessageResourcesHelper

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.