Package com.volantis.styling.values

Examples of com.volantis.styling.values.MutablePropertyValuesMock


            XDIMEAttributesMock groupAttributes = new XDIMEAttributesMock(
                "groupAttributes", expectations);
            MarinerPageContextMock pageContext = new MarinerPageContextMock(
                    "pageContext", expectations);
            StylesMock styles = new StylesMock("styles", expectations);
            MutablePropertyValuesMock values = new MutablePropertyValuesMock(
                    "values", expectations);
            DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);

            groupAttributes.expects.getValue("", XDIMEAttribute.REF.toString()).
View Full Code Here


     * get styles object
     * @return
     */
    private Styles getStyles() {
        StylesMock styles = new StylesMock("styles", expectations);
        MutablePropertyValuesMock propertyValues =
                new MutablePropertyValuesMock("propertyValues", expectations);

        immutablePropertyValues =
                new ImmutablePropertyValuesMock("immutablePropertyValues",
                        expectations);

View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();
        model = new XFormModelImpl("ModelID", new EmulatedXFormDescriptor());
        styles = new StylesMock("styles", expectations);
        values = new MutablePropertyValuesMock("values", expectations);
    }
View Full Code Here

        defs.expects.getStyleProperty(3).returns(
                StylePropertyDetails.BACKGROUND_IMAGE).fixed(1);
        defs.expects.getStyleProperty(4).returns(
                StylePropertyDetails.DISPLAY).fixed(1);

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

        values.expects.getSpecifiedValue(StylePropertyDetails.BACKGROUND_COLOR)
                .returns(StyleColorNames.BLUE).fixed(1);
        values.expects.getSpecifiedValue(StylePropertyDetails.BACKGROUND_REPEAT)
View Full Code Here

        return styles;
    }

    private void addPropertyValueExpectation(
            StylesMock styles, StyleProperty property, StyleValue value) {
        MutablePropertyValuesMock values = new MutablePropertyValuesMock(
                "values", expectations);

        values.expects.getComputedValue(property).returns(value).any();
       
        styles.expects.getPropertyValues().returns(values).any();
View Full Code Here

       
        styles.expects.getPropertyValues().returns(values).any();
    }

    private StylesMock buildMultipleStyles(List stylePropertiesList , List styleValuesList ) {
        MutablePropertyValuesMock values = new MutablePropertyValuesMock(
                "values", expectations);

        Iterator styleProperties = stylePropertiesList.iterator();
        Iterator styleValues = styleValuesList.iterator();
        while(styleProperties.hasNext()){
View Full Code Here

                new NestedStylesMock("shortcutMock", expectations);

        final NestedStylesMock afterMock =
                new NestedStylesMock("afterMock", expectations);

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

        List styles = new ArrayList();
        styles.add(STYLE_VALUE_FACTORY.getString(null, "testvalue"));
        StyleList styleList = STYLE_VALUE_FACTORY.getList(styles);
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.