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

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


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

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }

    /**
     * Create a resource migrator and a resource identifier which identifies
     * the input resource with a match that has two steps.
View Full Code Here


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

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }

    // todo: later: a test for step exception when paul adds to MethodAction

    // todo: later: a test for three steps would be good too.
View Full Code Here

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

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }

    /**
     * Create a resource migrator and a resource identifier which identifies
     * the input resource with a match that has no steps.
View Full Code Here

        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

        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
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.