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);

                Element tac = manager.retrieveDeviceTACElement("Master");
                assertNotNull("Expected a TAC Element for device \"Master\"", tac);
View Full Code Here


            public void execute(File repository) throws Exception {

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

                String[] patterns = manager.getDeviceTACs("Nokia-6210");
                assertEquals("Expected 2 TAC patterns ", 2, patterns.length);
                assertEquals("Unexpected first pattern", "350612", patterns[0]);
View Full Code Here

            public void execute(File repository) throws Exception {

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

                String[] patterns = new String[] {"123456", "12345678", "87654321"};

                manager.setDeviceTACs("Nokia-6210", patterns);
View Full Code Here

            public void execute(File repository) throws Exception {

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


                // Create a list of all policy names.
                List policyNamesList = new ArrayList();
View Full Code Here

            public void execute(File repository) throws Exception {

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


                // Create a list of all policy names.
                List policyNamesList = new ArrayList();
View Full Code Here

            public void execute(File repository) throws Exception {

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

                String[] patterns = manager.getUserAgentPatterns("PC");
                assertEquals("Expected 5 user agent patterns ", 5, patterns.length);
                assertEquals("Unexpected first pattern", "Mozilla/4.*", patterns[0]);
View Full Code Here

            public void execute(File repository) throws Exception {

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

                String[] patterns = new String[] {"fred", "jane"};

                manager.setUserAgentPatterns("PC", patterns);
View Full Code Here

                JDOMFactory jdomFactory = new ODOMFactory();
                DeviceRepositoryAccessorManager manager =
                        new DeviceRepositoryAccessorManager(
                                repository.getPath(),
                                new TestTransformerMetaFactory(), jdomFactory, false);

                String sName = DeviceRepositorySchemaConstants.STANDARD_ELEMENT_NAME;

                ODOMElement e = (ODOMElement) manager.retrieveDeviceIdentification("PC");
                //create a standard element and add it to the device identification
View Full Code Here

            public void execute(File repository) throws Exception {

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

                DeviceHeaderPattern[] patterns = manager.getHeaderPatterns(
                            "Samsung-SPH-N400");
                assertEquals("Should only be 1 header pattern", 1, patterns.length);
View Full Code Here

            public void execute(File repository) throws Exception {

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

                DeviceHeaderPattern[] patterns
                            = new DeviceHeaderPattern[] {
                                new DeviceHeaderPattern("name1", "re1", "baseDevice1"),
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.