Package com.consol.citrus.container

Examples of com.consol.citrus.container.Template


    @Test
    public void testCallTemplateParser() {
        assertActionCount(2);
       
        Template action = getNextTestActionFromTest();
        Assert.assertEquals(action.getName(), "call-template:myTemplate");
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getName(), "call-template:print");
        Assert.assertEquals(action.getParameter().size(), 2);
        Assert.assertEquals(action.getParameter().get("text"), "Hello Template");
        Assert.assertTrue(action.getParameter().get("message").contains("<Text>Hello Template</Text>"));
    }
View Full Code Here


    public void testFailActionParser() {
        Map<String, Template> templates = beanDefinitionContext.getBeansOfType(Template.class);
       
        Assert.assertEquals(templates.size(), 2);
       
        Template template = templates.get("myTemplate");
        Assert.assertEquals(template.getName(), "template(myTemplate)");
        Assert.assertEquals(template.getParameter().size(), 0);
        Assert.assertEquals(template.getActions().size(), 1);
        Assert.assertEquals(template.isGlobalContext(), true);
       
        template = templates.get("my2ndTemplate");
        Assert.assertEquals(template.getName(), "template(my2ndTemplate)");
        Assert.assertEquals(template.getParameter().size(), 0);
        Assert.assertEquals(template.getActions().size(), 2);
        Assert.assertEquals(template.isGlobalContext(), false);
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.container.Template

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.