Package com.volantis.mcs.eclipse.common

Examples of com.volantis.mcs.eclipse.common.PolicyAttributesDetails


     * selection for a sample attribute - in this case the location
     * attribute of AssetGroup. In this case the selection is based on
     * the element itself i.e. AssetGroup.
     */
    public void testGetAttributeValueSelectionPositive() {
        PolicyAttributesDetails attributesDetails =
                new PolicyAttributesDetails("assetGroup", false);

        Object[] locations =
                attributesDetails.getAttributeValueSelection("locationType");

        assertNotNull(locations);
        assertEquals("There should be 2 locations.", 2, locations.length);


View Full Code Here


    /**
     * Test that getAttributeValueSelection returns null when there
     * is no associated value selection.
     */
    public void testGetAttributeValueSelectionNegative() {
        PolicyAttributesDetails attributesDetails =
                new PolicyAttributesDetails("imageComponent", false);

        assertNull(attributesDetails.
                getAttributeValueSelection("fallbackTextComponent"));
    }
View Full Code Here

    /**
     * Test that getAttributeControlType works as expected with the only
     * policy that currently has a value for it i.e. AudioAsset.encoding.
     */
    public void testGetAttributeControlTypePositive() {
        PolicyAttributesDetails attributesDetails =
                new PolicyAttributesDetails("audioComponent", true);

        ControlType controlType =
                attributesDetails.getAttributeControlType("encoding");

        assertNotNull(controlType);
        assertEquals("Expected ControlType.READ_ONLY_COMBO_VIEWER",
                ControlType.READ_ONLY_COMBO_VIEWER, controlType);
    }
View Full Code Here

    /**
     * Test that getAttributeControlType returns null when there is no
     * known control type for a given atttribute
     */
    public void testGetAttributeControlTypeNegative() {
        PolicyAttributesDetails attributesDetails =
                new PolicyAttributesDetails("audioComponent", false);

        ControlType controlType =
                attributesDetails.getAttributeControlType("encoding");

        assertNull(controlType);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.common.PolicyAttributesDetails

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.