Package org.jboss.aerogear.io.netty.handler.codec.sockjs.protocol

Examples of org.jboss.aerogear.io.netty.handler.codec.sockjs.protocol.MessageFrame.release()


    public void messages() {
        final String[] messages = {"one", "two", "three"};
        final MessageFrame messageFrame = new MessageFrame(messages);
        assertThat(messageFrame.messages().size(), CoreMatchers.is(3));
        assertThat(messageFrame.messages(), CoreMatchers.hasItems("one", "two", "three"));
        messageFrame.release();
    }

    @Test
    public void createWithNullTerminatedArray() {
        final String[] nullTerminated = {"one", "two", null, "three"};
View Full Code Here


    public void createWithNullTerminatedArray() {
        final String[] nullTerminated = {"one", "two", null, "three"};
        final MessageFrame messageFrame = new MessageFrame(nullTerminated);
        assertThat(messageFrame.messages().size(), CoreMatchers.is(2));
        assertThat(messageFrame.messages(), CoreMatchers.hasItems("one", "two"));
        messageFrame.release();
    }

}
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.