Code example for Properties

Methods: setProperty

0
  final int port = 666;
 
  private DatabusRequest makeRequest() throws Exception 
  { 
    SocketAddress sockAddr = new InetSocketAddress(InetAddress.getByAddress(ipAddr), port);
    Properties props = new Properties();
    props.setProperty(prop1, propval1);
    props.setProperty(prop2, propval2);
    ServerContainer.ExecutorConfig defaultConfig = new ServerContainer.ExecutorConfig(3, 2, 100, false, 5);
    ServerContainer.ExecutorConfig ioConfig = new ServerContainer.ExecutorConfig(5, 4, 50, true, 6);
    ServerContainer.RuntimeConfig runtimeConfig = new ServerContainer.RuntimeConfig(200, defaultConfig, ioConfig);
 
    return new DatabusRequest(reqName, method, sockAddr, props, runtimeConfig);
  } 
 
  @Test 
  public void testToString() throws Exception 
  { 
    DatabusRequest req = makeRequest();
 
    // Coverage of toString().