Package yalp

Examples of yalp.YalpBuilder


*/
public class JavaTest {

    @org.junit.Before
    public void yalpBuilderBefore() {
        new YalpBuilder().build();
    }
View Full Code Here


        private List<Data2> listOfData2 = new ArrayList<Data2>();
    }

    @Before
    public void setup() {
        new YalpBuilder().build();
    }
View Full Code Here

    }

    @Test
    public void testBind() throws Exception {

        new YalpBuilder().build();
        ValidationBuilder.build();
        Map<String, String[]> m = new HashMap<String, String[]>();
        m.put("b.a", new String[]{"a1"});
        m.put("b.b", new String[]{"b1"});
        m.put("b.i", new String[]{"2"});
View Full Code Here

public class GroovyTemplateTest {

    @Test
    public void verifyRenderingTwice() {

        new YalpBuilder().build();

        String groovySrc = "hello world: ${name}";

        GroovyTemplate t = new GroovyTemplate("Template_123", groovySrc);
        new GroovyTemplateCompiler().compile(t);
View Full Code Here

    }

    @Test
    public void verifyCompilingExtremelyLongLines() {

        new YalpBuilder().build();

        StringBuilder longString = new StringBuilder();
        for (int i = 0; i < 1000; i++) {
            longString.append("11111111112222222222333333333344444444445555555555");
            longString.append("11111111112222222222333333333344444444445555555555");
View Full Code Here

    }

    @Test
    public void verifyCompilingExtremelyLongLinesWithLinefeed() {

        new YalpBuilder().build();

        // when printing text from template, newlines (0x0d) is transformed into the string '\n'.
        // when breaking lines it is a problem if the '\' is at the end on one line and 'n'
        // is at the beginning of the next line.
View Full Code Here

*/
public class PluginCollectionTest {

    @Test
    public void verifyLoading() {
        new YalpBuilder().build();
        PluginCollection pc = new PluginCollection();
        pc.loadPlugins();

        //the following plugin-list should match the list in the file 'yalp.plugins'
        assertThat(pc.getEnabledPlugins()).containsExactly(
View Full Code Here

    }

    @Test
    public void verifyLoadingFromFilesWithBlankLines() throws Exception {
        //verify that only application specific plugins gets reloaded
        new YalpBuilder().build();

        //create custom PluginCollection that fakes that TestPlugin is application plugin
        PluginCollection pc = new PluginCollection() {
            @Override
            protected boolean isLoadedByApplicationClassloader(YalpPlugin plugin) {
View Full Code Here

    }

    @Test
    public void verifyReloading() throws Exception {
        //verify that only application specific plugins gets reloaded
        new YalpBuilder().build();


        //create custom PluginCollection that fakes that TestPlugin is application plugin
        PluginCollection pc = new PluginCollection() {
            @Override
View Full Code Here

    }

    @SuppressWarnings({"deprecation"})
    @Test
    public void verifyUpdateYalpPluginsList() {
        new YalpBuilder().build();

        assertThat(Yalp.plugins).isEmpty();

        PluginCollection pc = new PluginCollection();
        pc.loadPlugins();
View Full Code Here

TOP

Related Classes of yalp.YalpBuilder

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.