Examples of MPSPluginConfigValue


Examples of com.volantis.testtools.config.MPSPluginConfigValue

     *
     * @todo refactor this into multiple tests ala MCS
     */
    public void notestMPSConfig() throws Exception {
       
        final MPSPluginConfigValue mps = createMpsValue();
        MPSAppConfigurator appConf = new MPSAppConfigurator();
        appConf.setPluginConfigValue(mps);
        // Set appConf in AppManager
        volantis = new Volantis();
        servletContext = new ServletContextStub();
        AppManager am = new AppManager(volantis, servletContext);
        am.setAppConf(appConf);
        PluginConfigFileBuilder builder = new MPSPluginConfigBuilder();
        am.registerPluginConfigFileBuilder(builder, mps.getClass());
        am.useAppWith(new AppExecutor() {
            public void execute(AppContext context) {
                checkConfiguration(volantis, mps);
            }
        });
View Full Code Here

Examples of com.volantis.testtools.config.MPSPluginConfigValue

    // @todo following code should be ala AppConfigurator
    // we would like to check other configurations too but the
    // use of BeanInitialiser effectively prevents it
    private MPSPluginConfigValue createMpsValue() {
        MPSPluginConfigValue mps;
        mps = new MPSPluginConfigValue();
        mps.internalBaseUrl = "mps internal base url";
        mps.messageRecipientInfo = TestMessageRecipient.class.getName();
           
        ConfigValueChannelSms sms = new ConfigValueChannelSms();
        sms.channelClass =
View Full Code Here

Examples of com.volantis.testtools.config.MPSPluginConfigValue

        super.setUp();

        createRepository();

        // Initialize the configBuilder and generate the config files
        final MPSPluginConfigValue mps = new MPSPluginConfigValue();

        ConfigValueChannelSms sms = new ConfigValueChannelSms();
        sms.channelClass = "com.volantis.mps.channels.LogicaSMSChannelAdapter";
        sms.name = SMS_CHANNEL;
        sms.address = "127.0.0.1";
        sms.port = new Integer(PORT);
        sms.userName = "test";
        sms.password = "test";
        sms.bindtype = "async";
        sms.supportsMulti = Boolean.FALSE;
        mps.channels.add(sms);

        ConfigValueChannelMms mms = new ConfigValueChannelMms();
        mms.channelClass = "com.volantis.mps.channels.NokiaMMSChannelAdapter";
        mms.name = MMS_CHANNEL;
        mms.url = "http://127.0.0.1:" + PORT;
        mms.defaultCountryCode = new Integer(44);
        mps.channels.add(mms);

        ConfigValueChannelSmtp smtp = new ConfigValueChannelSmtp();
        smtp.channelClass = "com.volantis.mps.channels.SMTPChannelAdapter";
        smtp.name = SMTP_CHANNEL;
        smtp.hostName = "127.0.0.1";
        smtp.authorisationEnabled = Boolean.FALSE;
        smtp.userName = "user";
        smtp.password = "password";
        mps.channels.add(smtp);

        MPSAppConfigurator appConf = new MPSAppConfigurator();
        appConf.setPluginConfigValue(mps);

        volantisBean = new Volantis();
        ServletContextStub servletContext = new ServletContextStub();
        appManager = new AppManager(volantisBean, servletContext);
        appManager.setAppConf(appConf);
        PluginConfigFileBuilder builder = new MPSPluginConfigBuilder();
        appManager.registerPluginConfigFileBuilder(builder, mps.getClass());

        Properties props = System.getProperties();
        props.put("mail.smtp.port", new Integer(PORT).toString());
    }
View Full Code Here

Examples of com.volantis.testtools.config.MPSPluginConfigValue

     *
     * @param executor The executor to run
     * @throws Exception
     */
    public void runWithAppManager(AppExecutor executor) throws Exception {
        final MPSPluginConfigValue mps = new MPSPluginConfigValue();
        if (messageRecipientInfo != null) {
            mps.messageRecipientInfo = messageRecipientInfo;
        }
        MPSAppConfigurator appConf = new MPSAppConfigurator();

        appConf.setPluginConfigValue(mps);
        // Set appConf in AppManager
        volantisBean = new Volantis();
        ServletContextStub servletContext = new ServletContextStub();
        AppManager am = new AppManager(volantisBean, servletContext);
        am.setAppConf(appConf);
        PluginConfigFileBuilder builder = new MPSPluginConfigBuilder();
        am.registerPluginConfigFileBuilder(builder, mps.getClass());
        am.useAppWith(executor);
    }
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.