Package org.fcrepo.server.journal.readerwriter.multicast.rmi

Examples of org.fcrepo.server.journal.readerwriter.multicast.rmi.RmiTransport.closeFile()


                new RmiTransport(parameters, CRUCIAL, parent, receiver);

        transport.openFile("someHash", "aFileName", new Date());
        assertEquals(1, receiver.howManyCallsToOpenFile());

        transport.closeFile();
        assertEquals(1, receiver.howManyCallsToClosefile());
    }

    @Ignore
    @Test(expected = JournalException.class)
View Full Code Here


        RmiTransport transport = new RmiTransport(parameters, CRUCIAL, parent);

        transport.openFile("someHash", "aFileName", new Date());
        assertCorrectNumberOfCalls(1, 0, 0);

        transport.closeFile();
        assertCorrectNumberOfCalls(1, 1, 1);

        transport.shutdown();
        assertCorrectNumberOfCalls(1, 1, 1);
    }
View Full Code Here

        transport.getWriter()
                .add(factory.createStartElement(name2, null, null));
        transport.getWriter().add(factory.createEndElement(name2, null));

        transport.closeFile();
        assertCorrectNumberOfCalls(1, 3, 1);

        transport.shutdown();
        assertCorrectNumberOfCalls(1, 3, 1);
    }
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.