Package org.internna.iwebmvc.core.context

Examples of org.internna.iwebmvc.core.context.ContextHolder


*/
public class I18nTextBinderTest {

    @Test
    public void setAsText() {
        I18nTextBinder binder = new I18nTextBinder(new ContextHolder() {
            @Override
            public List<Locale> getAvailableLocales() {
                Locale l = new Locale();
                l.setDescription("English");
                l.setLocale("en");
View Full Code Here


    private static List<Filter> filters;

    @BeforeClass
    public static void setUpPersistence() throws Exception {
        managerImpl = new RemoteEntityManagerImpl();
        managerImpl.context = new ContextHolder() {
            @Override
            public List<Locale> getAvailableLocales() {
                Locale l = new Locale();
                l.setDescription("English");
                l.setLocale("en");
View Full Code Here

        validator.decipherer = des;
        validator.validator = new AnnotatedValidator();
        Field f = AnnotatedValidator.class.getDeclaredField("validator");
        f.setAccessible(true);
        f.set(validator.validator, new ValidationVisitor());
        holder = new ContextHolder() {
            @Override
            public List<Locale> getAvailableLocales() {
                Locale l = new Locale();
                l.setDescription("English");
                l.setLocale("en");
View Full Code Here

        Field controllerField = ClassUtils.getField(EntityController.class, "decipherer");
        controllerField.setAccessible(true);
        controllerField.set(controller, crypto);
        Field contextField = ClassUtils.getField(EntityController.class, "context");
        contextField.setAccessible(true);
        contextField.set(controller, new ContextHolder() {
            @Override
            public List<Locale> getAvailableLocales() {
                Locale l = new Locale();
                l.setDescription("English");
                l.setLocale("en");
View Full Code Here

TOP

Related Classes of org.internna.iwebmvc.core.context.ContextHolder

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.