Examples of deviceExists()


Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.deviceExists()

            public void execute(File repository) throws Exception {
                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);
                // Master should exist
                assertTrue(accessor.deviceExists("Master"));

                // xxx shoudn't exist
                assertFalse(accessor.deviceExists("xxx"));

                // null shouldn't exist
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.deviceExists()

                                transformerMetaFactory, jdomFactory, true, true, null);
                // Master should exist
                assertTrue(accessor.deviceExists("Master"));

                // xxx shoudn't exist
                assertFalse(accessor.deviceExists("xxx"));

                // null shouldn't exist
                assertFalse(accessor.deviceExists(null));
            }
        });
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.deviceExists()

                // xxx shoudn't exist
                assertFalse(accessor.deviceExists("xxx"));

                // null shouldn't exist
                assertFalse(accessor.deviceExists(null));
            }
        });
    }

    /**
 
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.deviceExists()

                    // success
                }

                accessor.renameDevice("PC", "PeeCee");
                assertFalse("PC should not be found",
                        accessor.deviceExists("PC"));
                assertTrue("PeeCee should be found",
                        accessor.deviceExists("PeeCee"));

                accessor.renameDevice("WAP-Handset", "WP");
                assertFalse("WAP-Handset should not be found",
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.deviceExists()

                accessor.renameDevice("PC", "PeeCee");
                assertFalse("PC should not be found",
                        accessor.deviceExists("PC"));
                assertTrue("PeeCee should be found",
                        accessor.deviceExists("PeeCee"));

                accessor.renameDevice("WAP-Handset", "WP");
                assertFalse("WAP-Handset should not be found",
                        accessor.deviceExists("WAP-Handset"));
                assertTrue("WP should be found",
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.deviceExists()

                assertTrue("PeeCee should be found",
                        accessor.deviceExists("PeeCee"));

                accessor.renameDevice("WAP-Handset", "WP");
                assertFalse("WAP-Handset should not be found",
                        accessor.deviceExists("WAP-Handset"));
                assertTrue("WP should be found",
                        accessor.deviceExists("WP"));

                // Save the repository contents.
                writeRepository(accessor);
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.deviceExists()

                accessor.renameDevice("WAP-Handset", "WP");
                assertFalse("WAP-Handset should not be found",
                        accessor.deviceExists("WAP-Handset"));
                assertTrue("WP should be found",
                        accessor.deviceExists("WP"));

                // Save the repository contents.
                writeRepository(accessor);

                // Read the contents back to verify them.
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.deviceExists()

                        } else if (string.length() >
                                DeviceConstants.TEXT_MAX_LENGTH) {
                            return RENAME_DEVICE_ERROR_LENGTH;
                        } else if (oldName.equals(string)) {
                            return RENAME_DEVICE_ERROR_UNCHANGED;
                        } else if (dram.deviceExists(string)) {
                            return RENAME_DEVICE_ERROR_EXISTS;
                        } else if (deviceNameMatch.match(string)) {
                            if (deviceNameMatch.getParenLength(0) !=
                                    string.length()) {
                                return RENAME_DEVICE_ERROR_INVALID;
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.deviceExists()

            DeviceRepositoryAccessorManager dram =
                    ProjectDeviceRepositoryProvider.getSingleton().
                    getDeviceRepositoryAccessorManager(projectProvider.
                    getProject());
            if ((deviceName != null) && (!deviceName.equals("") &&
                    dram.deviceExists(deviceName))) {
                element = dram.getHierarchyDeviceElement(deviceName);
                if (element != null) {
                    dialog.setInitialSelection(element);
                }
            } else {   // try the previous selection
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.DeviceRepositoryAccessorManager.deviceExists()

                                new TestTransformerMetaFactory(),
                                new DefaultJDOMFactory(), false);
                final String deviceName = "MyTestDevice";

                assertFalse("Test device already exists!",
                            manager.deviceExists(deviceName));

                manager.createDevice("Master", deviceName);

                assertNotNull("Device identification element is null!",
                              manager.retrieveDeviceIdentification(deviceName));
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.