Package com.volantis.mcs.runtime.configuration

Examples of com.volantis.mcs.runtime.configuration.MarkupPluginConfiguration


    /**
     * Test getMarkupPlugin with an application scope plugin.
     */
    public void testGetMarkupPluginApplicationScope() throws Exception {
        MarkupPluginConfiguration config = new MarkupPluginConfiguration();

        final String pluginName = "myPlugin";
        final String pluginClassName = ManagerTestMarkupPlugin.class.getName();
        final String pluginScope = "application";

        config.setName(pluginName);
        config.setClassName(pluginClassName);
        config.setScope(pluginScope);

        final ArgumentConfiguration ac = new ArgumentConfiguration();
        final String argName = "argName";
        final String argValue = "argValue";
        ac.setName(argName);
        ac.setValue(argValue);
        config.addArgument(ac);

        MarkupPluginManagerImpl manager = createManagerForOnePlugin(config);

        InvokeAttributes attrs = new InvokeAttributes();
        attrs.setName(pluginName);
View Full Code Here


    /**
     * Test the method getSessionScope
     */
    public void testGetSessionScopePlugin() throws Exception {
        MarkupPluginConfiguration config = new MarkupPluginConfiguration();

        final String pluginName = "myPlugin";
        final String pluginClassName = ManagerTestMarkupPlugin.class.getName();
        final String pluginScope = "session";

        config.setName(pluginName);
        config.setClassName(pluginClassName);
        config.setScope(pluginScope);

        final ArgumentConfiguration ac = new ArgumentConfiguration();
        final String argName = "argName";
        final String argValue = "argValue";
        ac.setName(argName);
        ac.setValue(argValue);
        config.addArgument(ac);

        MarkupPluginManagerImpl manager = createManagerForOnePlugin(config);

        InvokeAttributes attrs = new InvokeAttributes();
        attrs.setName(pluginName);
View Full Code Here

        assertSame("Expected the plugin to be stored in session.",
                   fromManager, fromContext);
    }

    public void testGetCanvasScopePlugin() throws Exception {
        MarkupPluginConfiguration config = new MarkupPluginConfiguration();

        final String pluginName = "myPlugin";
        final String pluginClassName = ManagerTestMarkupPlugin.class.getName();
        final String pluginScope = "canvas";

        config.setName(pluginName);
        config.setClassName(pluginClassName);
        config.setScope(pluginScope);

        final ArgumentConfiguration ac = new ArgumentConfiguration();
        final String argName = "argName";
        final String argValue = "argValue";
        ac.setName(argName);
        ac.setValue(argValue);
        config.addArgument(ac);

        MarkupPluginManagerImpl manager = createManagerForOnePlugin(config);

        InvokeAttributes attrs = new InvokeAttributes();
        attrs.setName(pluginName);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.MarkupPluginConfiguration

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.