Package com.starlight.intrepid.message

Examples of com.starlight.intrepid.message.ChannelInitResponseIMessage


    buffer.setAutoExpand( true );

    List<ChannelInitResponseIMessage> test_cases =
      new ArrayList<ChannelInitResponseIMessage>();
   
    test_cases.add( new ChannelInitResponseIMessage( 0 ) );
    test_cases.add( new ChannelInitResponseIMessage( 10 ) );
    test_cases.add( new ChannelInitResponseIMessage( Integer.MAX_VALUE ) );
    test_cases.add( new ChannelInitResponseIMessage( 5, null ) );
    test_cases.add( new ChannelInitResponseIMessage( 5,
      new UnlocalizableTextResourceKey( "Blah" ) ) );

    for( ChannelInitResponseIMessage message : test_cases ) {
      buffer.clear();

      IMessageEncoder.encodeChannelInitResponse( message, buffer );
      buffer.flip();
     
      ChannelInitResponseIMessage cloned_message =
        IMessageDecoder.decodeChannelInitResponse( buffer );
     
      assertEquals( message, cloned_message );
    }
  }
View Full Code Here

TOP

Related Classes of com.starlight.intrepid.message.ChannelInitResponseIMessage

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.