Examples of VersionMock


Examples of com.volantis.mcs.migrate.api.framework.VersionMock

    protected void setUp() throws Exception {

        expectations = mockFactory.createUnorderedBuilder();

        mockReallyOld = new VersionMock("reallyOld", expectations);

        mockOld = new VersionMock("old", expectations);

        mockQuiteOld = new VersionMock("quiteOld", expectations);

        mockTarget = new VersionMock("target", expectations);

    }
View Full Code Here

Examples of com.volantis.mcs.migrate.api.framework.VersionMock

        // ==================================================================
        // Create mocks.
        // ==================================================================

        VersionMock mockUnknown = new VersionMock("unknown", expectations);

        StepMock mockOld2Target = new StepMock("old2target", expectations);

        // ==================================================================
        // Create expectations.
View Full Code Here

Examples of com.volantis.mcs.migrate.api.framework.VersionMock

                new RecogniserFactoryMock("recogniser factory", expectations);
        mockStreamBufferFactory =
                new StreamBufferFactoryMock("stream buffer factory", expectations);
        mockNotificationReporter =
                new NotificationReporterMock("notification reporter", expectations);
        mockTargetVersion = new VersionMock("target version", expectations);
        mockContentVersion1 = new VersionMock("content version 1", expectations);
        mockContentVersion2 = new VersionMock("content version 2", expectations);
        mockIdentificationFactory =
                new IdentificationFactoryMock("id factory", expectations);
        mockTypeIdBuilder =
                new TypeIdentifierBuilderMock("type id builder", expectations);
        mockResourceIdBuilder =
View Full Code Here

Examples of com.volantis.mcs.migrate.api.framework.VersionMock

                new StreamBufferFactoryMock("stream buffer factory", expectations);

        NotificationReporterMock mockNotificationReporter =
                new NotificationReporterMock("notification reporter", expectations);

        VersionMock mockTargetVersion = new VersionMock("target version", expectations);

        ResourceIdentifierBuilderMock mockResourceIdBuilder =
                new ResourceIdentifierBuilderMock("resource id builder", expectations);

        TypeIdentifierBuilderMock mockTypeIdBuilder =
                new TypeIdentifierBuilderMock("type id builder", expectations);

        GraphBuilderMock mockGraphBuilder = new GraphBuilderMock("graph builder", expectations);

        PathRecogniserMock mockPathRecogniser = new PathRecogniserMock("path recogniser", expectations);

        ContentRecogniserMock mockContentRecogniser1 =
                new ContentRecogniserMock("content recogniser 1", expectations);

        ContentRecogniserMock mockContentRecogniser2 =
                new ContentRecogniserMock("content recogniser 2", expectations);

        VersionMock mockContentVersion1 = new VersionMock("content version 1", expectations);

        VersionMock mockContentVersion2 = new VersionMock("content version 2", expectations);

        ContentIdentifierMock mockContentIdentifier1 =
                new ContentIdentifierMock("content identifier 1", expectations);

        ContentIdentifierMock mockContentIdentifier2 =
View Full Code Here

Examples of com.volantis.mcs.migrate.api.framework.VersionMock

        mockPathRecogniser = new PathRecogniserMock("path recog", expectations);

        mockContentIdentifier = new ContentIdentifierMock(
                "content recog", expectations);

        mockVersion = new VersionMock("version", expectations);

        final InputStreamMock mockInputStream = new InputStreamMock(
                "mockInputStream", expectations);
        mockInputStream.fuzzy.read(mockFactory.expectsArrayOf(byte.class))
                .returns(-1).any();
        mockInputStream.expects.close();

        mockRestartStream = new RestartInputStreamMock(
                "mockRestartStream", expectations, mockInputStream);
//        try {
//            mockInputStream = new RestartInputStreamMock(new InputStream() {
//                public int read() throws IOException {
//                    return -1;
//                }
//            });
//        } catch (IOException e) {
//            throw new RuntimeException(e);
//        }

        mockGraph = new GraphMock("graph", expectations);

        mockIterator = new IteratorMock("iterator", expectations);

        mockInputMetadata = new InputMetadataMock("path", expectations);

        targetMock = new VersionMock("targetMock", expectations);
    }
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.