Package com.volantis.mcs.repository

Examples of com.volantis.mcs.repository.RepositoryConnection


                final AbstractDeviceRepositoryAccessor accessor =
                        createAccessor(deviceRepositoryFile);

                // Create a test connection
                final RepositoryConnection connection = createConnection();

                final RepositoryEnumeration enumeration =
                    accessor.enumerateCategoryNames(connection);

                // Check successful operation of the enumeration


            public void execute(File deviceRepositoryFile) throws Exception {

                AbstractDeviceRepositoryAccessor accessor =
                        createAccessor(deviceRepositoryFile);

                RepositoryConnection connection = createConnection();

                RepositoryEnumeration enumeration = accessor.enumerateDeviceTACs(connection);
                assertTrue("Enumeration should contain elements", enumeration.hasNext());
                DeviceTACPair dtp = (DeviceTACPair) enumeration.next();
                assertEquals("First device name should match 'Nokia-6210'",

            public void execute(File deviceRepositoryFile) throws Exception {

                AbstractDeviceRepositoryAccessor accessor =
                        createAccessor(deviceRepositoryFile);

                RepositoryConnection connection = createConnection();

                RepositoryEnumeration enumeration = accessor.enumerateDeviceTACs(connection);
                assertFalse("With no TAC data, enumeration should be empty",
                        enumeration.hasNext());
            }

                AbstractDeviceRepositoryAccessor accessor =
                        createAccessor(deviceRepositoryFile);

                // Create a test connection
                RepositoryConnection connection = createConnection();

                RepositoryEnumeration enumeration = accessor.enumeratePolicyNames(connection,
                                                                           "system");

                // Check successful operation of the enumeration

                        createAccessor(deviceRepositoryFile);

                final Locale locale = Locale.getDefault();

                // Create a test connection
                final RepositoryConnection connection = createConnection();

                CategoryDescriptor descriptor =
                        accessor.retrieveCategoryDescriptor(
                                connection, "protocol", locale);
                // Ensure the name matches as expected

                final AbstractDeviceRepositoryAccessor accessor =
                        createAccessor(deviceRepositoryFile);

                // Create a test connection
                final RepositoryConnection connection = createConnection();

                final List descriptors =
                    accessor.retrieveCategoryDescriptors(connection, "audio");
                assertEquals(2, descriptors.size());
                final CategoryDescriptor descriptor1 =

                final AbstractDeviceRepositoryAccessor accessor =
                        createAccessor(deviceRepositoryFile);

                // Create a test connection
                final RepositoryConnection connection = createConnection();

                final List descriptors =
                    accessor.retrievePolicyDescriptors(connection, "J2MEconf");
                assertEquals(2, descriptors.size());
                final PolicyDescriptor descriptor1 =

                        createAccessor(deviceRepositoryFile);

                final Locale locale = Locale.getDefault();

                // Create a test connection
                RepositoryConnection connection = createConnection();

                // ------------------------------------------------------------
                // boolean
                // ------------------------------------------------------------
                DefaultPolicyDescriptor descriptor = (DefaultPolicyDescriptor)

TOP

Related Classes of com.volantis.mcs.repository.RepositoryConnection

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.