Package com.volantis.mcs.testtools.application

Examples of com.volantis.mcs.testtools.application.AppExecutor


        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


     *
     * @param executor The code to run.
     */
    public void runWithHyperSonicManager(Executor executor) throws Exception {
        final Executor hypersonicExecutor = executor;
        runWithAppManager(new AppExecutor() {
            public void execute(AppContext appContext) throws Exception {
                hypersonicManager.useCleanupWith(hypersonicExecutor);
            }
        });
    }
View Full Code Here

        mgr.setAppConf(new DefaultAppConfigurator() {
            public void setUp(ConfigValue config) throws Exception {
                super.setUp(config);
            }
        });
        mgr.useAppWith(new AppExecutor() {
            public void execute(AppContext context) throws Exception {
                doNestedContextsWithExpression();
            }
        });
    }
View Full Code Here

               
                config.markupPlugins = pluginList;
            }
        });
       
        AppExecutor executor = new InvokeAppExecutor(volantis, invokeMethod);
        appManager.useAppWith(executor);
    }
View Full Code Here

     * <p>
     * This captures stderr and checks there is nothing unexpected.
     */
    public void testInitialiseSuccess() throws Exception {
        AppManager mgr = new AppManager(volantis, servletContext);
        mgr.useAppWith(new AppExecutor() {
            public void execute(AppContext context) throws Exception {
                String err = context.getConsoleOutput().getErr();
                // Note: this is deliberately as specific as possible to
                // ensure that ANY changes in the way that volantis
                // initialisation affects System.err are at least found here;
View Full Code Here

                // ... apart from what we are testing.
                config.pagePackagingMimeEnabled = Boolean.TRUE;
                config.pagePackagingMimeEnabled = null;
            }
        });
        mgr.useAppWith(new AppExecutor() {
            public void execute(AppContext context) {
                assertEquals("Page packaging not as", false,
                        volantis.isPagePackagingMimeEnabled());
            }
        });
View Full Code Here

                super.setUp(config);
                // ... apart from what we are testing.
                config.pagePackagingMimeEnabled = Boolean.TRUE;
            }
        });
        mgr.useAppWith(new AppExecutor() {
            public void execute(AppContext context) {
                assertEquals("Page packaging not as", true,
                        volantis.isPagePackagingMimeEnabled());
            }
        });
View Full Code Here

            public void setUp(ConfigValue config) throws Exception {
                // Set up default values...
                super.setUp(config);
            }
        });
        mgr.useAppWith(new AppExecutor() {
            public void execute(AppContext context) {
                ProtocolsConfiguration pc =
                    volantis.getProtocolsConfiguration();
                assertNotNull("Protocols configuration should exist", pc );
                assertEquals( "Preferred output should be WMLC",
View Full Code Here

                // Set up default values...
                super.setUp(config);
                config.wmlPreferredOutputFormat = "wml";
            }
        });
        mgr.useAppWith(new AppExecutor() {
            public void execute(AppContext context) {
                ProtocolsConfiguration pc =
                    volantis.getProtocolsConfiguration();
                assertNotNull("Protocols configuration should exist", pc );
                assertEquals( "Preferred output should be WML",
View Full Code Here

        });
    }

    public void testInitializeNamedProjects() throws Exception {
        AppManager manager = new AppManager(volantis, servletContext);
        manager.useAppWith(new AppExecutor() {
           public void execute(AppContext context) {
               RuntimeProject one = volantis.getPredefinedProject(
                       ConfigFileBuilder.DEFAULT_NAMED_PROJECT_ONE);
               RuntimeProject two = volantis.getPredefinedProject(
                       ConfigFileBuilder.DEFAULT_NAMED_PROJECT_TWO);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.testtools.application.AppExecutor

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.