Package com.volantis.mcs.policies.variants

Examples of com.volantis.mcs.policies.variants.VariantMock


                                expectations);

        referenceMock = new RuntimePolicyReferenceMock("referenceMock",
                                expectations);

        variantMock = new VariantMock("variantMock", expectations);

        selectedVariantMock = new SelectedVariantMock("selectedVariantMock", expectations);

        textMetaDataMock = new TextMetaDataMock("textMetaDataMock", expectations);
    }
View Full Code Here


            new RuntimePolicyReferenceMock("RuntimePolicyReferenceMock4",
                expectations);
        runtimePolicyReferenceMock4.expects.getName().returns("name4").any();

        final ScriptLibraryManager slm = new ScriptLibraryManager(protocolMock);
        final VariantMock variantMock =
            new VariantMock("VariantMock", expectations);
        variantMock.expects.getVariantType().returns(VariantType.SCRIPT).any();

        final ActivatedVariablePolicyMock policyMock1 =
            new ActivatedVariablePolicyMock("ActivatedVariablePolicyMock1",
                expectations);
View Full Code Here

    public void testAddParentRules() {

        final ActivatedVariablePolicyMock policyMock =
            new ActivatedVariablePolicyMock("policyMock", expectations);

        final VariantMock deviceVariantMock =
            new VariantMock("deviceVariantMock", expectations);
        deviceVariantMock.expects.getVariantType().returns(
            VariantType.THEME).any();
        final StyleSheetMock deviceStyleSheetMock =
            new StyleSheetMock("deviceStyleSheetMock", expectations);
        deviceStyleSheetMock.expects.getRules().returns(
            Collections.singletonList("device rule")).any();
        final ActivatedThemeContent deviceContent =
            new ActivatedThemeContent(deviceStyleSheetMock, true);
        deviceVariantMock.expects.getContent().returns(deviceContent).any();

        final VariantMock fallbackDeviceVariantMock =
            new VariantMock("fallbackDeviceVariantMock", expectations);
        fallbackDeviceVariantMock.expects.getVariantType().returns(
            VariantType.THEME).any();
        final StyleSheetMock fallbackDeviceStyleSheetMock =
            new StyleSheetMock("fallbackDeviceStyleSheetMock", expectations);
        fallbackDeviceStyleSheetMock.expects.getRules().returns(
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.VariantMock

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.