Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.DefaultProtocolSupportFactory


    public class MyXHTMLTransitional extends XHTMLTransitional {
       
        DOMOutputBuffer outputbuffer;

        MyXHTMLTransitional() {
            super(new DefaultProtocolSupportFactory(),
                    new XHTMLFullConfiguration());
            outputbuffer = new DOMOutputBuffer();
            outputbuffer.initialise();
        }
View Full Code Here


    public class MyXHTMLFull extends XHTMLFull {
       
        DOMOutputBuffer outputbuffer;

        MyXHTMLFull() {
            super(new DefaultProtocolSupportFactory(),
                new XHTMLFullConfiguration());
            outputbuffer = new DOMOutputBuffer();
            outputbuffer.initialise();
        }
View Full Code Here

        final AssetResolverMock assetResolverMock =
            new AssetResolverMock("AssetResolverMock", expectations);

        final DOMProtocolMock protocolMock =
            new DOMProtocolMock("DOMProtocolMock", expectations,
                new DefaultProtocolSupportFactory(), null);
        protocolMock.expects.pushHeadBuffer().any();
        final List scriptAttributesList = new LinkedList();
        protocolMock.fuzzy.writeOpenScript(mockFactory.expectsAny()).does(
            new MethodAction() {
                public Object perform(MethodActionEvent event) {
View Full Code Here

    private void checkTransformation(String input, String expected,
                                     int deviceWidth,
                                     boolean convertPercentagesToPixels)
            throws Throwable {

        ProtocolSupportFactory factory = new DefaultProtocolSupportFactory();

        DOMProtocolMock protocolMock = new DOMProtocolMock(
                "protocolMock", expectations, factory, null);

        TransformationConfigurationMock transformationConfigurationMock =
                new TransformationConfigurationMock(
                        "transformationConfigurationMock", expectations);

        MarinerPageContextMock pageContextMock = new MarinerPageContextMock(
                "pageContextMock", expectations);

        InternalDeviceMock deviceMock = new InternalDeviceMock(
                "deviceMock", expectations);

        ProtocolConfigurationMock protocolConfigMock =
                new ProtocolConfigurationMock("protocolConfigMock",
                        expectations);

        // XHTML Mobile 1.0 doesn't support nested tables.
        protocolMock.expects.supportsNestedTables().returns(false).any();
        protocolMock.expects.getMarinerPageContext().returns(pageContextMock).any();
        protocolMock.expects.getDOMFactory().returns(factory.getDOMFactory()).any();
        protocolMock.expects.getProtocolConfiguration().returns(protocolConfigMock).any();

        pageContextMock.expects.getDevice().returns(deviceMock).any();

        deviceMock.expects.getPolicyValue(DevicePolicyConstants.PROTOCOL_CSS_EMULATE_WIDTH_PERCENTAGE_TABLE)
View Full Code Here

        PolicyReferenceFactoryMock policyRefFactoryMock = new PolicyReferenceFactoryMock(
                "policyRefFactory", expectations);

        final DOMProtocolMock protocolMock =
            new DOMProtocolMock("DOMProtocolMock", expectations,
                new DefaultProtocolSupportFactory(), null);

        pageCtxMock
            .expects.getProtocol()
            .returns(protocolMock).any();
View Full Code Here

public abstract class DOMTransformerTestAbstract
        extends TestCaseAbstract {

    protected DOMProtocol createDOMProtocol() {
        DefaultProtocolSupportFactory supportFactory =
                new DefaultProtocolSupportFactory();
        return new DOMProtocol(supportFactory, null) {
            public String defaultMimeType() {
                return "application/xhtml+xml";
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.DefaultProtocolSupportFactory

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.