Package org.serviceconnector.api.cln

Examples of org.serviceconnector.api.cln.SCClient


   * Description: Invoke setMaxConnections with value = Integer.MIN_VALUE<br>
   * Expectation: throws validation exception
   */
  @Test(expected = SCMPValidatorException.class)
  public void t11_maxConnections() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setMaxConnections(Integer.MIN_VALUE);
  }
View Full Code Here


   * Description: Invoke setMaxConnections with value = Integer.MAX_VALUE<br>
   * Expectation: value = MAX was properly set
   */
  @Test
  public void t12_maxConnections() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setMaxConnections(Integer.MAX_VALUE);
    Assert.assertEquals("MaxConnections not equal", Integer.MAX_VALUE, client.getMaxConnections());
  }
View Full Code Here

   * Description: Invoke setMaxConnections with value = -1<br>
   * Expectation: throws validation exception
   */
  @Test(expected = SCMPValidatorException.class)
  public void t13_maxConnections() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setMaxConnections(-1);
  }
View Full Code Here

   * Description: Invoke setMaxConnections with value = 1<br>
   * Expectation: throws validation exception
   */
  @Test(expected = SCMPValidatorException.class)
  public void t14_maxConnections() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setMaxConnections(1);
  }
View Full Code Here

   * Description: Invoke setMaxConnections with value = 2<br>
   * Expectation: value = 2 was properly set
   */
  @Test
  public void t15_maxConnections() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setMaxConnections(2);
    Assert.assertEquals("MaxConnections not equal", 2, client.getMaxConnections());
  }
View Full Code Here

   * Description: Invoke keep alive Interval with value = 0<br>
   * Expectation: value = 0 was properly set
   */
  @Test
  public void t20_keepAliveInterval() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setKeepAliveIntervalSeconds(0); // can be set before attach
    Assert.assertEquals("KeepAliveInterval not equal", 0, client.getKeepAliveIntervalSeconds());
  }
View Full Code Here

   * Description: Invoke keep alive Interval with value = Integer.MAX_VALUE<br>
   * Expectation: throws validation exception
   */
  @Test(expected = SCMPValidatorException.class)
  public void t21_keepAliveInterval() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setKeepAliveIntervalSeconds(Integer.MAX_VALUE); // can be set before attach
  }
View Full Code Here

   * Description: Invoke keep alive Interval with value = Integer.MIN_VALUE<br>
   * Expectation: throws validation exception
   */
  @Test(expected = SCMPValidatorException.class)
  public void t22_keepAliveInterval() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setKeepAliveIntervalSeconds(Integer.MIN_VALUE); // can be set before attach
  }
View Full Code Here

   * Description: Invoke keep alive timeout with value = 1<br>
   * Expectation: value = 1 was properly set
   */
  @Test
  public void t23_keepAliveTimeout() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setKeepAliveTimeoutSeconds(1); // can be set before attach
    Assert.assertEquals("KeepAliveTimeout not equal", 1, client.getKeepAliveTimeoutSeconds());
  }
View Full Code Here

   * Description: Invoke keep alive timeout with value = Integer.MAX_VALUE<br>
   * Expectation: throws validation exception
   */
  @Test(expected = SCMPValidatorException.class)
  public void t24_keepAliveTimeout() throws Exception {
    client = new SCClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    client.setKeepAliveTimeoutSeconds(Integer.MAX_VALUE); // can be set before attach
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.api.cln.SCClient

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.