Package com.volantis.synergetics.cornerstone.utilities.xml.jaxp

Examples of com.volantis.synergetics.cornerstone.utilities.xml.jaxp.TestTransformerMetaFactory


            public void execute(File repository) throws Exception {

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

                try {
                    manager.setLocalizedPolicyName("", "localName");
                    fail("Expected an IllegalArgumentException");
View Full Code Here


            public void execute(File repository) throws Exception {

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

                try {
                    manager.setLocalizedPolicyName("beep", null);
                    fail("Expected an IllegalArgumentException");
View Full Code Here

            public void execute(File repository) throws Exception {

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

                // unfortunately relies on getLocalizedPolicyName
                assertEquals("Unexpected localized policy name.",
                             "Beep",
View Full Code Here

            public void execute(File repository) throws Exception {

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

                String localized = manager.getLocalizedPolicyCategory("system");
                assertEquals("Unexpected localized category name.", "System",
                        localized);
View Full Code Here

            public void execute(File repository) throws Exception {

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

                String description = manager.getPolicyDescription("beep");

                String expected = "Indicates whether the device supports basic sound" +
View Full Code Here

            public void execute(File repository) throws Exception {

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

                String category = manager.getPolicyCategory("bmpinpage");

                assertEquals("Unexpected policy category.", "image", category);
View Full Code Here

            public void execute(File repository) throws Exception {

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


                // Beep for PC should be resolved from Master and should be false.
                ResolvedDevicePolicy policy = manager.resolvePolicy("PC", "beep");
View Full Code Here

            public void execute(File repository) throws Exception {

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


                // fullpixelsx for PC should be resolved from Master as there is an
                // inherit element and so the value should be the inherited -1 rather than
View Full Code Here

            public void execute(File repository) throws Exception {

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

                Element element = manager.retrieveDeviceElement("Voice");
                assertEquals("Unexpected name for the Voice device.",
                        "Voice", element.getAttributeValue("name"));
View Full Code Here

            public void execute(File repository) throws Exception {

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

                Element identification = manager.retrieveDeviceIdentification("Master");
                assertNotNull("Expected a null identification for device \"Master\"",
                        identification);
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.cornerstone.utilities.xml.jaxp.TestTransformerMetaFactory

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.