Package com.volantis.devrep.repository.impl.testtools.device

Examples of com.volantis.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator


     * Test what happens when you try and load a repository without any
     * device definitions.
     */
    public void testNoDevice() throws Exception {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                try {
                    updateHierarchy(getHierarchy("hierarchy-empty.xml"));
                    fail("empty hierarchy is not valid");
View Full Code Here


     * Test the getting of the root device name.
     */
    public void testGetRootDeviceName() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);
View Full Code Here

     * Test the retrieval of child device names for a particular device name.
     */
    public void testGetChildDeviceNames() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true,
View Full Code Here

     * bogus.</p>
      * @todo this should be re-instated
     */
    public void notestRenameDevice() throws Exception {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);
View Full Code Here

      * @todo this should be re-instated
     */
    public void notestRemoveDevice() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);
View Full Code Here

    /**
     * Test the getProperties() method.
     */
    public void testGetProperties() throws Exception {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {

                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(repository.getPath(),
View Full Code Here

                                             final String prefix)
            throws Throwable {

        final String[] result = new String[1];
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File file) throws Exception {
                MDPRArchiveAccessor archiveAccessor = new MDPRArchiveAccessor(
                        file.getPath(), transformerMetaFactory);
                EclipseDeviceRepository accessor =
View Full Code Here

     * @throws Exception if an error occurs
     */
    public void testMoveDeviceNullDeviceArg() throws Exception {
        try {
            TemporaryFileManager manager = new TemporaryFileManager(
                    new TestDeviceRepositoryCreator());
            manager.executeWith(new TemporaryFileExecutor() {
                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);
View Full Code Here

     * @throws Exception if an error occurs
     */
    public void testMoveDeviceNullParentDeviceArg() throws Exception {
        try {
            TemporaryFileManager manager = new TemporaryFileManager(
                    new TestDeviceRepositoryCreator());
            manager.executeWith(new TemporaryFileExecutor() {
                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);
View Full Code Here

     * @throws Exception if an error occurs
     */
    public void testMoveDeviceNonExistentDeviceArg() throws Exception {
        try {
            TemporaryFileManager manager = new TemporaryFileManager(
                    new TestDeviceRepositoryCreator());
            manager.executeWith(new TemporaryFileExecutor() {
                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

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.