Examples of pushMap()


Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        request.addParameter("bar", "123");
        InvokeContext context = new InvokeContext(true);
        context.enableLogging(new LogKitLogger(getLogger()));
       
        Map sitemapElements = new HashMap();
        context.pushMap("sitemap", sitemapElements);
        PreparedVariableResolver resolver = new PreparedVariableResolver(expr, manager);
        assertEquals("123", resolver.resolve(context, getObjectModel()));
    }

    public void testNestedModuleAndSitemapExpressions() throws PatternException, ComponentException {
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        InvokeContext context = new InvokeContext(true);
        context.enableLogging(new LogKitLogger(getLogger()));
       
        Map sitemapElements = new HashMap();
        sitemapElements.put("1", "oo");
        context.pushMap("sitemap", sitemapElements);
        PreparedVariableResolver resolver = new PreparedVariableResolver(expr, manager);
        assertEquals("123", resolver.resolve(context, getObjectModel()));
    }
   
    public void testAnchors() throws PatternException {
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        InvokeContext context = new InvokeContext(true);
        context.enableLogging(new LogKitLogger(getLogger()));
       
        Map sitemapElements = new HashMap();
        sitemapElements.put("name", "123");
        context.pushMap("label", sitemapElements);
        PreparedVariableResolver resolver = new PreparedVariableResolver(expr, manager);
        assertEquals("123", resolver.resolve(context, getObjectModel()));       
    }
   
    public void testSitemapVariables() throws PatternException {
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        InvokeContext context = new InvokeContext(true);
        context.enableLogging(new LogKitLogger(getLogger()));

        Map sitemapElements = new HashMap();
        sitemapElements.put("1", "abc");
        context.pushMap("label", sitemapElements);
        PreparedVariableResolver resolver = new PreparedVariableResolver(expr, manager);
        assertEquals("123abc", resolver.resolve(context, getObjectModel()));
    }

    public void testSitemapVariablesWithText() throws PatternException {
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        InvokeContext context = new InvokeContext(true);
        context.enableLogging(new LogKitLogger(getLogger()));

        Map sitemapElements = new HashMap();
        sitemapElements.put("1", "abc");
        context.pushMap("label", sitemapElements);
        PreparedVariableResolver resolver = new PreparedVariableResolver(expr, manager);
        assertEquals("123abc/def", resolver.resolve(context, getObjectModel()));
    }
   
    public void testPrefixedSitemapVariable() throws PatternException {
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        InvokeContext context = new InvokeContext(true);
        context.enableLogging(new LogKitLogger(getLogger()));

        Map sitemapElements = new HashMap();
        sitemapElements.put("1", "abc");
        context.pushMap("label", sitemapElements);
        PreparedVariableResolver resolver = new PreparedVariableResolver(expr, manager);
        assertEquals("123abc/def", resolver.resolve(context, getObjectModel()));
    }

    public void testMultilevelSitemapVariables() throws PatternException {
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        context.enableLogging(new LogKitLogger(getLogger()));

        Map sitemapElements;
        sitemapElements = new HashMap();
        sitemapElements.put("1", "juliet");
        context.pushMap("label1", sitemapElements);
       
        sitemapElements = new HashMap();
        sitemapElements.put("1", "oscar");
        context.pushMap("label2", sitemapElements);
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        sitemapElements.put("1", "juliet");
        context.pushMap("label1", sitemapElements);
       
        sitemapElements = new HashMap();
        sitemapElements.put("1", "oscar");
        context.pushMap("label2", sitemapElements);

        PreparedVariableResolver resolver = new PreparedVariableResolver(expr, manager);
        assertEquals("from juliet to oscar", resolver.resolve(context, getObjectModel()));
    }
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        context.enableLogging(new LogKitLogger(getLogger()));

        Map sitemapElements;
        sitemapElements = new HashMap();
        sitemapElements.put("1", "juliet");
        context.pushMap("label1", sitemapElements);
       
        sitemapElements = new HashMap();
        sitemapElements.put("1", "oscar");
        context.pushMap("label2", sitemapElements);
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap()

        sitemapElements.put("1", "juliet");
        context.pushMap("label1", sitemapElements);
       
        sitemapElements = new HashMap();
        sitemapElements.put("1", "oscar");
        context.pushMap("label2", sitemapElements);

        PreparedVariableResolver resolver = new PreparedVariableResolver(expr, manager);
        assertEquals("from juliet to oscar", resolver.resolve(context, getObjectModel()));
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.