Examples of useAppWith()


Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

        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.mcs.testtools.application.AppManager.useAppWith()

        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);
    }



    /** Build a HSQL repository */
 
View Full Code Here

Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

        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

Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

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

    /**
     * AppExecutor to all us to test MarkupPlugin invocation.
     */
View Full Code Here

Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

     * <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

Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

                // ... 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

Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

                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

Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

            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

Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

                // 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

Examples of com.volantis.mcs.testtools.application.AppManager.useAppWith()

        });
    }

    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
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.