public void testProperties(){
  Properties properties=new Properties();
  properties.put(NettyOptions.THREADS,"1");
  properties.put(NettyOptions.CONNECT_TIMEOUT,"1000");
  properties.put(NettyOptions.SEND_BUFFER_SIZE,"1024");
  properties.put(NettyOptions.RECEIVE_BUFFER_SIZE,"1024");
  properties.put(NettyOptions.REUSE_ADDRESS,"false");
  properties.put(NettyOptions.TCP_KEEP_ALIVE,"false");
  properties.put(NettyOptions.TCP_NO_DELAY,"true");
  properties.put(NettyOptions.ACCEPT_BACKLOG,"1234");
  NettyOptions options=new NettyOptions(properties);
  assertEquals(options.threads(),1);
  assertEquals(options.connectTimeout(),1000);
  assertEquals(options.sendBufferSize(),1024);
  assertEquals(options.receiveBufferSize(),1024);
  assertEquals(options.reuseAddress(),false);
  assertEquals(options.tcpKeepAlive(),false);
  assertEquals(options.tcpNoDelay(),true);
  assertEquals(options.acceptBacklog(),1234);
}

public void testProperties ( ) { Properties properties = new Properties ( ) ; properties . put ( NettyOptions . THREADS , "1" ) ; properties . put ( NettyOptions . CONNECT_TIMEOUT , "1000" ) ; properties . put ( NettyOptions . SEND_BUFFER_SIZE , "1024" ) ; properties . put ( NettyOptions . RECEIVE_BUFFER_SIZE , "1024" ) ; properties . put ( NettyOptions . REUSE_ADDRESS , "false" ) ; properties . put ( NettyOptions . TCP_KEEP_ALIVE , "false" ) ; properties . put ( NettyOptions . TCP_NO_DELAY , "true" ) ; properties . put ( NettyOptions . ACCEPT_BACKLOG , "1234" ) ; NettyOptions options = new NettyOptions ( properties ) ; assertEquals ( options . threads ( ) , 1 ) ; assertEquals ( options . connectTimeout ( ) , 1000 ) ; assertEquals ( options . sendBufferSize ( ) , 1024 ) ; assertEquals ( options . receiveBufferSize ( ) , 1024 ) ; assertEquals ( options . reuseAddress ( ) , false ) ; assertEquals ( options . tcpKeepAlive ( ) , false ) ; assertEquals ( options . tcpNoDelay ( ) , true ) ; assertEquals ( options . acceptBacklog ( ) , 1234 ) ; }
tests configuring netty properties .
