Package com.volantis.styling.values

Examples of com.volantis.styling.values.MutablePropertyValuesMock


    private MutablePropertyValuesMock inputPropertyValues;

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

        inputPropertyValues = new MutablePropertyValuesMock(
                "inputPropertyValues", expectations);
    }
View Full Code Here


//        StylingFactory originalFactory = (StylingFactory)PrivateAccessor.
//                getField(DefaultPropertyValueFactory.class, "stylingFactory");
//        PrivateAccessor.setField(DefaultPropertyValueFactory.class,
//                "stylingFactory", factoryMock);

        MutablePropertyValuesMock winnerProps = createWinnerPropertyValues();
        MutablePropertyValuesMock luserProps = createLuserPropertyValues();
        MutablePropertyValuesMock result =
                new MutablePropertyValuesMock("result", expectations);

        factoryMock.expects.createPropertyValues(
                StylePropertyDetails.getDefinitions()).returns(result);
        result.expects.stylePropertyIterator().returns(
                StylePropertyDetails.getDefinitions().stylePropertyIterator());
View Full Code Here

        expectations = mockFactory.createUnorderedBuilder();

        // ===================================================================
        //   Initialise test objects and set expectations
        // ===================================================================
        MutablePropertyValuesMock luserProps = createLuserPropertyValues();

        // ===================================================================
        //   Test behaviour.
        // ===================================================================
//        PropertyValues merged = merger.mergePropertyValues(null, luserProps);
View Full Code Here

        expectations = mockFactory.createUnorderedBuilder();

        // ===================================================================
        //   Initialise test objects and set expectations
        // ===================================================================
        MutablePropertyValuesMock winnerProps = createWinnerPropertyValues();

        // ===================================================================
        //   Test behaviour.
        // ===================================================================
//        PropertyValues merged = merger.mergePropertyValues(winnerProps, null);
View Full Code Here

     * @return fully initialised mock property values.
     */
    private MutablePropertyValuesMock createTestablePropertyValues(
            StyleProperties properties) {

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

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

                winnerValue);
        winnerProperties.setStyleValue(StylePropertyDetails.BORDER_RIGHT_WIDTH,
                winnerValue);
        winnerProperties.setStyleValue(StylePropertyDetails.COLOR, red);

        MutablePropertyValuesMock winnerProps =
                createTestablePropertyValues(winnerProperties);
        return winnerProps;
    }
View Full Code Here

        luserProperties.setStyleValue(StylePropertyDetails.COLOR, white);
        luserProperties.setStyleValue(StylePropertyDetails.WIDTH, luserValue);
        luserProperties.setStyleValue(StylePropertyDetails.HEIGHT, luserValue);
        luserProperties.setStyleValue(StylePropertyDetails.FONT_STYLE, italic);

        MutablePropertyValuesMock luserProps =
                createTestablePropertyValues(luserProperties);
        return luserProps;
    }
View Full Code Here

        //   Create Mocks
        // =====================================================================

        expectations = mockFactory.createUnorderedBuilder();

        valuesMock = new MutablePropertyValuesMock(
                "valuesMock", expectations);
        inheritableValuesMock =
                new StyleValuesMock("inheritableValuesMock", expectations);

        initialValueFinderMock = new InitialValueFinderMock(
View Full Code Here

        final ImmutablePropertyValues inheritableValues =
                new ImmutablePropertyValuesMock(
                        "inheritableValues", expectations);

        final MutablePropertyValuesMock valuesMock =
                new MutablePropertyValuesMock("valuesMock", expectations);

        final InheriterMock inheriterMock =
                new InheriterMock("inheriterMock", expectations);

        // =====================================================================
View Full Code Here

    public void testListItemElementCallsProtocol() throws Exception {

        String elementName = "li";

        MutablePropertyValuesMock values = new MutablePropertyValuesMock(
                "property values", expectations);
       
        values.expects.getComputedValue(StylePropertyDetails.MCS_MENU_STYLE)
                .returns(MCSMenuStyleKeywords.STATIC).any();
       
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.