Package mock.java.io

Examples of mock.java.io.InputStreamMock


     * Tests that all the mock objects can be initialised correctly.
     */
    public void testInitialisation() {
        //new WriterMock("writer", expectations);
        new ReaderMock("reader", expectations);
        new InputStreamMock("inputStream", expectations);
        new OutputStreamMock("outputStream", expectations);
        new FilterInputStreamMock("filterInputStream", expectations,
                System.in);
    }
View Full Code Here


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

        ResourceLoaderMock resourceLoader = new ResourceLoaderMock(
                "resourceLoader", expectations);
        InputStreamMock inputSteam = new InputStreamMock(
                "inputStream", expectations);

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

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

        ResourceLoaderMock resourceLoader = new ResourceLoaderMock(
                "resourceLoader", expectations);
        InputStreamMock inputSteam = new InputStreamMock(
                "inputStream", expectations);

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

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

        ResourceLoaderMock resourceLoader = new ResourceLoaderMock(
                "resourceLoader", expectations);
        InputStreamMock inputSteam = new InputStreamMock(
                "inputStream", expectations);


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

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

        mockResourceIdentifier = new ResourceIdentifierMock(
                "identifier", expectations);

        mockInput = new InputStreamMock("mockInput", expectations);

        mockOutput = new OutputStreamMock("mockOutput", expectations);

        mockOutputCreator = new OutputCreatorMock(
                "creator", expectations);
View Full Code Here

        // Create a mock stream buffer and associated buffer streams that the
        // resource migrator will use to copy from step 1 to step 2.
        final StreamBufferMock mockStreamBuffer = new StreamBufferMock(
                "streamBuffer", expectations);
        final InputStreamMock mockBufferInput = new InputStreamMock(
                "mockBufferInput", expectations);
        final OutputStreamMock mockBufferOutput = new OutputStreamMock(
                "mockBufferOutput", expectations);

        // ==================================================================
View Full Code Here

        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();
View Full Code Here

TOP

Related Classes of mock.java.io.InputStreamMock

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.