Package com.volantis.mcs.migrate.impl.framework

Examples of com.volantis.mcs.migrate.impl.framework.DefaultResourceMigrator


        // ==================================================================
        // Do the test.
        // ==================================================================

        DefaultResourceMigrator migrator = new DefaultResourceMigrator(
                mockStreamBufferFactory, mockResourceIdentifier,
                mockNotificationReporter);

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }
View Full Code Here


        // ==================================================================
        // Do the test.
        // ==================================================================

        DefaultResourceMigrator migrator = new DefaultResourceMigrator(
                mockStreamBufferFactory, mockResourceIdentifier,
                mockNotificationReporter);

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }
View Full Code Here

        // ==================================================================
        // Do the test.
        // ==================================================================

        DefaultResourceMigrator migrator = new DefaultResourceMigrator(
                mockStreamBufferFactory, mockResourceIdentifier,
                mockNotificationReporter);

        try {
            migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
            fail("Migrator should fail if sequence empty");
        } catch (IllegalStateException e) {
            // success
        }
    }
View Full Code Here

        // ==================================================================
        // Do the test.
        // ==================================================================

        DefaultResourceMigrator migrator =
                new DefaultResourceMigrator(mockStreamBufferFactory,
                                            mockResourceIdentifier, mockNotificationReporter);

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }
View Full Code Here

        Step step = new DefaultStep(version1, version2,
                new TestStreamMigrator(inputData, outputData));
        graph.addStep(step);
        type.setGraph(graph);
        resourceRecogniser.addType(type);
        DefaultResourceMigrator resourceMigrator =
                new DefaultResourceMigrator(streamBufferFactory,
                        resourceRecogniser, notificationReporter);

        ByteArrayInputStream bais = new ByteArrayInputStream(
                inputData.getBytes());
        final ByteArrayOutputStream baos = new ByteArrayOutputStream();
        InputMetadata meta = new DefaultInputMetadata(filename, true);
        resourceMigrator.migrate(meta, bais, new OutputCreator() {
            public OutputStream createOutputStream() {
                return baos;
            }
        });
        assertEquals("", outputData, new String(baos.toByteArray()));
View Full Code Here

TOP

Related Classes of com.volantis.mcs.migrate.impl.framework.DefaultResourceMigrator

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.