Examples of Volantis


Examples of com.volantis.mcs.runtime.Volantis

        // on a real Volantis bean instance
        MultiChannelMessage message = new MultiChannelMessageImpl() {
            // JavaDoc inherited
            protected Volantis getVolantis() {
                // Override only the methods of interest
                return new Volantis() {
                    // JavaDoc inherited
                    public String getPageBase() {
                        return baseURL;
                    }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     * Initialise a new instance of this test case.
     */
    public OpenwaveMenuRendererSelectorTestCase() {
        // This is required for Pipeline namespace support in IDEA. Sigh!
        // todo: fix this.
        new Volantis();

        MutableStylePropertySet interestingProperties =
                new MutableStylePropertySetImpl();
        interestingProperties.add(StylePropertyDetails.WHITE_SPACE);
        styledDOMTester = new StyledDOMTester(interestingProperties);
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

    public OpenwaveMenuRendererTestCase(String name) {
        super(name);
        // This is required for Pipeline namespace support in IDEA. Sigh!
        // todo: fix this.
        new Volantis();

        MutableStylePropertySet interestingProperties =
                new MutableStylePropertySetImpl();
        interestingProperties.add(StylePropertyDetails.WHITE_SPACE);
        styledDOMTester = new StyledDOMTester(
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

                        expectations);
        referenceResolverMock.expects.
                resolveQuotedTextExpression(fragmentName).returns(null);
        MarinerApplication application = new MarinerServletApplication();
        MarinerConfiguration config = new MarinerConfiguration();
        Volantis volantis = getVolantis();
        PrivateAccessor.setField(volantis, "marinerConfig", config);
        PrivateAccessor.invoke(volantis, "initializeURLRewriters",
                new Class [] {MarinerApplication.class},
                new Object [] { application });
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

    protected void doPhoneNumberContentTest(Object content,
                                            String expected,
                                            String messageContext)
        throws Exception {
        Volantis volantis = getVolantis();
        TestMarinerPageContext context = new TestMarinerPageContext();
        XMLReader reader = DOMUtilities.getReader();
        DOMOutputBuffer dom = new DOMOutputBuffer();

        protocol.setMarinerPageContext(context);
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

                             dom.getRoot(), protocol.getCharacterEncoder()));
    }

    public void testRenderAltText() throws Exception {
        // Initialise the protocol.
        Volantis volantis = getVolantis();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.setVolantis(volantis);
        protocol.setMarinerPageContext(context);
        context.setProtocol(protocol);
        context.setDevice(InternalDeviceTestHelper.createTestDevice());
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     * The test setup for the write open and close native markup methods.
     *
     * @param test the actual test to be executed
     */
    public void doNativeMarkupTest(NativeMarkupTest test) throws Exception {
        Volantis volantis = new Volantis();
        TestMarinerPageContext context = new TestMarinerPageContext();
        DOMOutputBuffer buffer = new TestDOMOutputBuffer();
        PageHead pageHead = new PageHead();
        TestDeviceLayoutContext dlc = new TestDeviceLayoutContext();
        OutputBufferFactory factory = new TestDOMOutputBufferFactory();
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     */
    public static Volantis createVolantisBean(
            final StyleSheetConfiguration configuration,
            boolean enableExternalCaching) throws Exception {

        Volantis bean = new TestableVolantis() {
            // JavaDoc inherited
            public StyleSheetConfiguration getStyleSheetConfiguration() {
                StyleSheetConfiguration config;
                if (configuration == null) {
                    // No config specified so create a default one
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

        pageContext.setCurrentOutputBuffer(buffer);
        testable.setCurrentBuffer(null, buffer);

        // Add in a protocols configuration so that action input fields do
        // not have exceptions for dollar encoding.
        Volantis v = getVolantis();
        ProtocolsConfiguration pc = v.getProtocolsConfiguration();
        pc.setWmlPreferredOutputFormat("wml");
        pageContext.setVolantis(v);
    }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

    }
   
    public static String getDeviceMessageProtocol(String deviceName) {

        // Get the Volantis Bean
        Volantis volantisBean = Volantis.getInstance();

        if (volantisBean == null) {
            throw new IllegalStateException("Volantis has not been initialised");
        }

        DeviceReader deviceReader = volantisBean.getDeviceReader();
        String channel = null;
        try {
            InternalDevice device = deviceReader.getDevice(deviceName);
            channel = device.getPolicyValue("preferredmessageprotocol");
        } catch (RepositoryException e) {
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.