Package com.volantis.styling.properties

Examples of com.volantis.styling.properties.PropertyDetailsBuilder


     * If the property is inherited, device's initial value shouldn't matter.
     */
    public void testCheckStatusDefaultStatusKnownAccuracyDefaultInitialValueInheritedWithOtherParent() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);
        propertyDetailsBuilder.setInitialValueAccuracy(
            InitialValueAccuracy.KNOWN);
        propertyDetailsBuilder.setInitialValueSource(
            new FixedInitialValue(DEFAULT_VALUE));

        final PropertyValues parentValues = createOtherParentValues();
        final PropertyClearerCheckerImpl checker = createChecker(
            propertyDetailsBuilder, parentValues);
View Full Code Here


     * If the property is inherited, device's initial value shouldn't matter.
     */
    public void testCheckStatusDefaultStatusKnownAccuracyOtherInitialValueInheritedWithOtherParent() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);
        propertyDetailsBuilder.setInitialValueAccuracy(
            InitialValueAccuracy.KNOWN);
        propertyDetailsBuilder.setInitialValueSource(
            new FixedInitialValue(OTHER_VALUE));

        final PropertyValues parentValues = createOtherParentValues();
        final PropertyClearerCheckerImpl checker = createChecker(
            propertyDetailsBuilder, parentValues);
View Full Code Here

     * initial value is not known.
     */
    public void testCheckStatusNotSet() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, null);

        deviceValue = DeviceValues.NOT_SET;

View Full Code Here

     * for this element and property is known to be the default one.
     */
    public void testCheckStatusNotSetKnownAccuracyDefaultInitialValue() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInitialValueAccuracy(
            InitialValueAccuracy.KNOWN);
        propertyDetailsBuilder.setInitialValueSource(
            new FixedInitialValue(DEFAULT_VALUE));
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, null);

        deviceValue = DeviceValues.NOT_SET;
View Full Code Here

     * for this element and property is known to be other than the default one.
     */
    public void testCheckStatusNotSetKnownAccuracyOtherInitialValue() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInitialValueAccuracy(
            InitialValueAccuracy.KNOWN);
        propertyDetailsBuilder.setInitialValueSource(
            new FixedInitialValue(OTHER_VALUE));
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, null);

        deviceValue = DeviceValues.NOT_SET;
View Full Code Here

     * properties.
     */
    public void testCheckStatusNotSetInheritedNoParent() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);

        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, null);

        deviceValue = DeviceValues.NOT_SET;
View Full Code Here

     * important since it is an inheritable property.
     */
    public void testCheckStatusNotSetInheritedWithDefaultParent() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);

        final PropertyValues parentValues = createDefaultParentValues();
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, parentValues);

View Full Code Here

     * default one.
     */
    public void testCheckStatusNotSetInheritedWithOtherParent() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);

        final PropertyValues parentValues = createOtherParentValues();
        final PropertyClearerCheckerImpl checker =
            createChecker(propertyDetailsBuilder, parentValues);

View Full Code Here

     * No inheritance is involved.
     */
    public void testCheckStatusKnownValueDefault() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        final PropertyClearerCheckerImpl checker = createChecker(
            propertyDetailsBuilder, null);

        deviceValue = DEFAULT_VALUE;

View Full Code Here

     * Inherited values are irrelevant if the device has a known/unknown value.
     */
    public void testCheckStatusKnownValueDefaultInheritedNoParent() {

        // set up property details set builder
        final PropertyDetailsBuilder propertyDetailsBuilder =
            new PropertyDetailsBuilder(STYLE_PROPERTY);
        propertyDetailsBuilder.setInherited(true);

        final PropertyClearerCheckerImpl checker = createChecker(
            propertyDetailsBuilder, null);

        deviceValue = DEFAULT_VALUE;
View Full Code Here

TOP

Related Classes of com.volantis.styling.properties.PropertyDetailsBuilder

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.