Package com.volantis.mcs.dom

Examples of com.volantis.mcs.dom.ElementMock


    // Javadoc inherited.
    protected void setUp() throws Exception {
        super.setUp();
        // Create test objects.
        emulator = new HoverEmulator();
        element = new ElementMock("element", expectations);
        outputStyles = new OutputStylesMock("outputStyles", expectations);
        styles = new OutputStylesMock("styles", expectations);
        hoverProperties = ThemeFactory.getDefaultInstance().
               createMutableStyleProperties();
        // need to create a fully populated set of property values.
View Full Code Here


        // ==================================================================
        // Create mocks.
        // ==================================================================

        elementMock = new ElementMock("element",
                expectations);

        outputStylesMock = new OutputStylesMock(
                "output styles", expectations);
    }
View Full Code Here

        // ==================================================================
        // Create mocks.
        // ==================================================================

        elementMock = new ElementMock("element", expectations);

        outputElementMock1 =
                new OutputStyledElementMock("output element", expectations,
                        elementMock, null);
        outputElementMock2 =
View Full Code Here

        outputElementsMock = new OutputStyledElementListMock("elements", expectations);

        styleSheetMock = new StyleSheetMock("style sheet", expectations);

        elementMock1 = new ElementMock("element", expectations);

        elementMock2 = new ElementMock("element 2", expectations);

        outputElementMock1 = new OutputStyledElementMock(
                "output element", expectations, elementMock1, null);

        outputElementMock2 = new OutputStyledElementMock(
View Full Code Here

    private ElementMock createTestableNestedTable() {

        // ===================================================================
        //   Create Mocks
        // ===================================================================
        outerTable = new ElementMock("outerTable", expectations);
        outerRow = new ElementMock("outerRow", expectations);
        outerCell = new ElementMock("outerCell", expectations);
        innerTable = new ElementMock("innerTable", expectations);
        innerRow = new ElementMock("innerRow", expectations);
        innerCell = new ElementMock("innerCell", expectations);
        text = new TextMock("text", expectations);

        // ===================================================================
        //   Set Expectations
        // ===================================================================
View Full Code Here

        // ===================================================================
        //   Create Mocks
        // ===================================================================
        resetExpectations();
        ElementMock table = new ElementMock("table", expectations);

        // ===================================================================
        //   Set Expectations
        // ===================================================================
        table.expects.getAttributeValue(
View Full Code Here

        resetExpectations();

        // ===================================================================
        //   Initialise test objects and set expectations
        // ===================================================================
        ElementMock cell = new ElementMock("cell", expectations);
        ElementMock ancestor = new ElementMock("ancestor", expectations);

        String[] attributes = getExpectedPreserveStyleAttributes();
        final String cellValue = "cell";
        final String ancestorValue = "ancestor";
View Full Code Here

    public void setUp() throws Exception {
        super.setUp();

        // initialise mock objects
        factoryMock = new DOMFactoryMock("factoryMock", expectations);
        element = new ElementMock("element", expectations);
        emptyElement = new ElementMock("emptyElement", expectations);
        styles = new StylesMock("styles", expectations);
    }   
View Full Code Here

        elementDetails = new ElementDetailsMock("elementDetails", expectations);
        menu = new MenuMock("menu", expectations);
        stylesMock = new StylesMock("styles", expectations);
        divOutput = new DeprecatedDivOutputMock("divOutput", expectations);

        element = new ElementMock("element", expectations);
        slElement = new ElementMock("slElement", expectations);
        document = new DocumentMock("document", expectations);
        text = new TextMock("text", expectations);
        slAttributes = new ShardLinkGroupAttributes();

        domFactoryMock = new DOMFactoryMock("domFactoryMock", expectations);
View Full Code Here

        item = new MenuItemMock("item", expectations);
        menu = new MenuMock("menu", expectations);
        shortcutValue = new TextAssetReferenceMock("shortcutValue", expectations);
        properties = new ShortcutPropertiesMock("properties", expectations);
        elementDetails = new ElementDetailsMock("elementDetails", expectations);
        currentElement = new ElementMock("currentElement", expectations);
        styleValue = new StyleValueMock("styleValue", expectations);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.dom.ElementMock

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.