Package net.mindengine.galen.parser

Examples of net.mindengine.galen.parser.VarsParser


        }
    };


    @Test(dataProvider="provideGoodSamples") public void shouldProcessTemplate_successfully(Integer number, Context context, String templateText, String expectedText) {
        VarsParser template = new VarsParser(context, EMPTY_PROPERTIES, new VarsParserJsProcessor(context, jsFunctions));
        String realText = template.parse(templateText);

        assertThat(realText, is(expectedText));
    }
View Full Code Here


    }

    @Test
    public void shouldAllowTo_loadCustomJavascript() {
        Context context = new Context();
        VarsParser template = new VarsParser(context, EMPTY_PROPERTIES, new VarsParserJsProcessor(context, jsFunctions));
        String realText = template.parse("${load('/specs/customFunction.js')} got it from js: ${customFunction('qwe', 'ert')}");

        assertThat(realText, is(" got it from js: qwe-ert"));
    }
View Full Code Here

TOP

Related Classes of net.mindengine.galen.parser.VarsParser

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.