Examples of PolicyValueModifier


Examples of com.volantis.mcs.eclipse.ab.editors.devices.PolicyValueModifier

                    // Get the policy name to use for testing the policy type.
                    String policyName = (String) TYPE_TO_TEST_POLICY.get(name);

                    // Create the PolicyValueModifier
                    PolicyValueModifier pvMod =
                            policyType.createPolicyValueModifier(
                                    new Shell(Display.getDefault()),
                                    SWT.NONE, policyName, deviceRAM);

                    // The PolicyValueModifier should not be null.
                    assertNotNull(pvMod);

                    // The class of the created PolicyValueModifier should be the
                    // expected class.
                    assertEquals(TYPE_TO_PVM_CLASS.get(name), pvMod.getClass());

                    // Check the values of the PolicyValueModifier for selection type.
                    if (policyType.getName().equals(PolicyType.SELECTION.getName())) {
                        assertTrue(checkSelectionValues(pvMod));
                    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.devices.PolicyValueModifier

                        new DeviceRepositoryAccessorManager(
                                repository.getPath(),
                                new TestTransformerMetaFactory(),
                                new DefaultJDOMFactory(), false);

                PolicyValueModifier pvMod = composition.
                        createPolicyValueModifier(SHELL, SWT.NONE,
                                policyName, deviceRAM);

                assertNotNull(pvMod);
                assertSame(modifierClass, pvMod.getClass());
            }
        });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.