Examples of moveDevice()


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

                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);

                    accessor.moveDevice(null, "parent");
                    fail("IllegalArgumentException was not thrown for null device");
                }
            });
        } catch (IllegalArgumentException e) {
            // expected
View Full Code Here

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

                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);

                    accessor.moveDevice("device", null);
                    fail("IllegalArgumentException was not thrown for null parent");
                }
            });
        } catch (IllegalArgumentException e) {
            // expected
View Full Code Here

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

                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);

                    accessor.moveDevice("doesNotExistDevice", "parent");
                    fail("RepositoryException was not thrown for non existent device");
                }
            });
        } catch (RepositoryException e) {
            // expected
View Full Code Here

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

                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);

                    accessor.moveDevice("Master", "doesNotExistDevice");
                    fail("RepositoryException was not thrown for non existent parent");
                }
            });
        } catch (RepositoryException e) {
            // expected
View Full Code Here

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

                assertNotNull("PC device does not exist");
                Element pcParent = pc.getParent();
                try {
                    // try to move the master so that it is a child of PC. This should
                    // throw an IllegalAddException
                    accessor.moveDevice("Master", "PC");
                    fail("RepositoryException was not thrown when moving a device " +
                            "whose parent is a child of the device being moved");
                } catch (IllegalArgumentException e) {
                    // expected
                }
View Full Code Here

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

                assertNotEquals(pc.getParent().getAttributeValue(
                        DeviceRepositorySchemaConstants.
                        DEVICE_NAME_ATTRIBUTE),
                        "TV");
                // do the move
                accessor.moveDevice("PC", "TV");
                // check that the TV device is the new parent of the PC device
                assertEquals("Device was not moved",
                        "TV",
                        pc.getParent().getAttributeValue(
                                DeviceRepositorySchemaConstants.
View Full Code Here

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

                    ODOMElement parent = (ODOMElement) result[0];
                    // finally move the selected device to the new location
                    DeviceRepositoryAccessorManager dram =
                            context.getDeviceRepositoryAccessorManager();
                    try {
                        dram.moveDevice(getDeviceName(selected),
                                getDeviceName(parent));
                    } catch (RepositoryException e) {
                        EclipseCommonPlugin.handleError(ABPlugin.getDefault(),
                                e);
                        throw new UndeclaredThrowableException(e);
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.