Examples of YalpBuilder


Examples of yalp.YalpBuilder

    @Test
    public void verify_that_the_plugin_gets_loaded() {
        PluginCollection pc = new PluginCollection();

        new YalpBuilder().build();
        pc.loadPlugins();
        YalpPlugin pi = pc.getPluginInstance(ConfigurablePluginDisablingPlugin.class);
        assertThat(pi).isInstanceOf(ConfigurablePluginDisablingPlugin.class);
        assertThat(pc.getEnabledPlugins()).contains(pi);
    }
View Full Code Here

Examples of yalp.YalpBuilder

public class LangTest {

    @Test
    public void testChange() {
        new YalpBuilder().build();
        Yalp.langs = Arrays.asList("no", "en", "fr");
        Lang.current.set(null);
        assertThat(Lang.current.get()).isNull();

        Lang.change("no");
View Full Code Here

Examples of yalp.YalpBuilder

        assertThat(Lang.current.get()).isEqualTo("en");
    }

    @Test
    public void testGet() {
        new YalpBuilder().build();
        Yalp.langs = Arrays.asList("no", "en", "en_GB", "fr");
        Lang.current.set(null);

        Http.Response.current.set(new Http.Response());
View Full Code Here

Examples of yalp.YalpBuilder

public class SessionTest {

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

Examples of yalp.YalpBuilder

public class MailTest {

    @Test(expected = MailException.class)
    public void buildMessageWithoutFrom() throws EmailException {
        new YalpBuilder().build();

        Email email = new SimpleEmail();
        email.addTo("from@yalpframework.com");
        email.setSubject("subject");
        Mail.buildMessage(new SimpleEmail());
View Full Code Here

Examples of yalp.YalpBuilder

        Mail.buildMessage(new SimpleEmail());
    }

    @Test(expected = MailException.class)
    public void buildMessageWithoutRecipient() throws EmailException {
        new YalpBuilder().build();

        Email email = new SimpleEmail();
        email.setFrom("from@yalpframework.com");
        email.setSubject("subject");
        Mail.buildMessage(email);
View Full Code Here

Examples of yalp.YalpBuilder

        Mail.buildMessage(email);
    }

    @Test(expected = MailException.class)
    public void buildMessageWithoutSubject() throws EmailException {
        new YalpBuilder().build();

        Email email = new SimpleEmail();
        email.setFrom("from@yalpframework.com");
        email.addTo("to@yalpframework.com");
        Mail.buildMessage(email);
View Full Code Here

Examples of yalp.YalpBuilder

        Mail.buildMessage(email);
    }

    @Test
    public void buildValidMessages() throws EmailException {
        new YalpBuilder().build();

        Email email = new SimpleEmail();
        email.setFrom("from@yalpframework.com");
        email.addTo("to@yalpframework.com");
        email.setSubject("subject");
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.