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

Examples of org.jboss.aerogear.io.netty.handler.codec.sockjs.protocol.PreludeFrame.content()


public class PreludeFrameTest {

    @Test
    public void content() {
        final PreludeFrame preludeFrame = new PreludeFrame();
        assertThat(preludeFrame.content().capacity(), is(PreludeFrame.CONTENT_SIZE));
        assertThat(getContent(preludeFrame), equalTo(expectedContent(PreludeFrame.CONTENT_SIZE)));
    }

    private static byte[] getContent(final PreludeFrame preludeFrame) {
        final byte[] actualContent = new byte[PreludeFrame.CONTENT_SIZE];
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.