Package fi.jumi.core.ipc.buffer

Examples of fi.jumi.core.ipc.buffer.IpcBuffer


    @Test
    public void encodes_and_decodes_all_events() throws Exception {
        SpyListener<T> spy = new SpyListener<>(interfaceType);
        exampleUsage(spy.getListener());
        spy.replay();
        IpcBuffer buffer = TestUtil.newIpcBuffer();

        // encode
        IpcProtocol<T> protocol = newIpcProtocol(buffer);
        protocol.start();
        exampleUsage(sendTo(protocol));
        protocol.close();

        // decode
        buffer.position(0);
        IpcReaders.decodeAll(protocol, spy.getListener());

        spy.verify();
    }
View Full Code Here

TOP

Related Classes of fi.jumi.core.ipc.buffer.IpcBuffer

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.