Package com.volantis.styling.values

Examples of com.volantis.styling.values.MutablePropertyValuesMock


    public void testDynamicNavigationListElementCallsProtocol()
        throws Exception {

        String elementName = "nl";
       
        MutablePropertyValuesMock styleValues
            = new MutablePropertyValuesMock("styleValues", expectations);
   
        styleValues
            .expects.getComputedValue(StylePropertyDetails.MCS_MENU_STYLE)
                .returns(MCSMenuStyleKeywords.DYNAMIC).fixed(2);
View Full Code Here


     */
    public void testDynamicListItemElementCallsProtocol() throws Exception {

        String elementName = "li";

        MutablePropertyValuesMock styleValues
            = new MutablePropertyValuesMock("styleValues", expectations);
       
        DynamicMenuWidgetRendererMock rendererMock
            = buildDynamicMenuExpectations(elementName, styleValues);
           
        rendererMock
View Full Code Here

     */
    public void testDynamicListLabelElementCallsProtocol() throws Exception {

        String elementName = "label";

        MutablePropertyValuesMock styleValues
            = new MutablePropertyValuesMock("styleValues", expectations);
       
        DynamicMenuWidgetRendererMock rendererMock
            = buildDynamicMenuExpectations(elementName, styleValues);
           
        rendererMock
View Full Code Here

     */
    public void testConstructionWithDataWithoutFragmentLinks() {
        // Create test objects.
        String name = "fragmentOne";
        StylesMock styles = new StylesMock("styles", expectations);
        MutablePropertyValuesMock values =
                new MutablePropertyValuesMock("values", expectations);

        // Set expectations.
        styles.expects.removeNestedStyles(PseudoElements.BEFORE).returns(null);
        styles.expects.removeNestedStyles(PseudoElements.AFTER).returns(null);
        styles.expects.getPropertyValues().returns(values).fixed(5);
View Full Code Here

    }

    protected MutablePropertyValuesMock createTestablePropertyValues(
            StyleProperty property, StyleValue value) {

        MutablePropertyValuesMock values =
                new MutablePropertyValuesMock("values", expectations);

        StylePropertyDefinitions definitions =
                StylePropertyDetails.getDefinitions();
        for (Iterator i = definitions.stylePropertyIterator(); i.hasNext();) {
            StyleProperty prop = (StyleProperty)i.next();
View Full Code Here

    }

    protected MutablePropertyValuesMock createTestablePropertyValues(
            PropertyValueArray array) {

        MutablePropertyValuesMock values =
                new MutablePropertyValuesMock("values", expectations);

        StylePropertyDefinitions definitions =
                StylePropertyDetails.getDefinitions();
        for (Iterator i = definitions.stylePropertyIterator(); i.hasNext();) {
            StyleProperty prop = (StyleProperty)i.next();
View Full Code Here

        // ===================================================================
        //   Create Mocks
        // ===================================================================
        StylesMock styles = new StylesMock("styles", expectations);
        MutablePropertyValuesMock values;

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

        // ===================================================================
        //   Create Mocks
        // ===================================================================
        StylesMock styles = new StylesMock("styles", expectations);
        MutablePropertyValuesMock values;

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

       
        // Let the base class create all the necessary mocks
        super.setUp();

        // Add XHTML-specific mocks and expectations
        MutablePropertyValuesMock stylePropertyValuesMock
            = new  MutablePropertyValuesMock("stylePVMock", expectations);   
        stylePropertyValuesMock
            .expects.stylePropertyIterator()
            .returns(Collections.EMPTY_LIST.iterator());
   
        StylesMock stylesMock = new StylesMock("stylesMock", expectations);       
View Full Code Here

    public void testRenderWhenSupportsSpan() throws RendererException {
        // Create test objects.
        StylesMock styles = new StylesMock("styles", expectations);
        StylesMock stylesCopy = new StylesMock("stylesCopy", expectations);
        MutablePropertyValuesMock propertyValues =
                new MutablePropertyValuesMock("propertyValues", expectations);
        final ExpectedValue attributes =
                mockFactory.expectsInstanceOf(SpanAttributes.class);

        // Set expectations.
        item.expects.getMenu().returns(menu);
View Full Code Here

TOP

Related Classes of com.volantis.styling.values.MutablePropertyValuesMock

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.