Package org.fcrepo.server.journal

Examples of org.fcrepo.server.journal.JournalWriter


                        {"classname", MockTransport.class.getName()},
                        {"crucial", "true"}});
        addTransportParameters("one", transportOneParameters);
        addTransportParameters("two", transportTwoParameters);

        JournalWriter writer =
                JournalWriter.getInstance(parameters, DUMMY_ROLE, server);
        assertSame("JournalWriter is the wrong class",
                   MulticastJournalWriter.class,
                   writer.getClass());
        MulticastJournalWriter mjw = (MulticastJournalWriter) writer;

        Map<String, Transport> transports = mjw.getTransports();
        assertEquals("should be two transports", 2, transports.size());
        assertEquals("transport one class", MockTransport.class, transports
View Full Code Here

TOP

Related Classes of org.fcrepo.server.journal.JournalWriter

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.