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

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


        mockTypeIdBuilder.expects.setName("custom type");
        mockGraphBuilder.expects.setTarget(mockTargetVersion);

        //Start-up the default builder...
        builder =
                new DefaultResourceMigratorBuilder(mockCoreFactory,
                        mockIdentificationFactory, mockStreamMigratorFactory,
                        mockGraphFactory, mockRecogniserFactory,
                        mockStreamBufferFactory, mockNotificationReporter);
        builder.setTarget(mockTargetVersion);
    }
View Full Code Here


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

        DefaultResourceMigratorBuilder builder =
                new DefaultResourceMigratorBuilder(mockCoreFactory,
                        mockIdentificationFactory, mockStreamMigratorFactory,
                        mockGraphFactory, mockRecogniserFactory,
                        mockStreamBufferFactory, mockNotificationReporter);

        builder.setTarget(mockTargetVersion);

        {
            builder.startType("custom type");

            builder.setCustomPathRecogniser(mockPathRecogniser);

            builder.addCustomContentRecogniser(mockContentVersion1,
                    mockContentRecogniser1);

            builder.addCustomContentRecogniser(mockContentVersion2,
                    mockContentRecogniser2);

            builder.endType();
        }

        {
            builder.startType("regexp type");

            builder.setRegexpPathRecogniser("path re");

            builder.addRegexpContentRecogniser(mockContentVersion1,
                    "content re 1");

            builder.addRegexpContentRecogniser(mockContentVersion2,
                    "content re 2");

            builder.endType();
        }

        ResourceMigrator resourceMigrator =
                builder.getCompletedResourceMigrator();

        assertSame("", mockResourceMigrator, resourceMigrator);

    }
View Full Code Here

TOP

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

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.