Package org.serviceconnector.api

Examples of org.serviceconnector.api.SCMessage


   * Description: create session after server was aborted, catch the error and delete the session<br>
   * Expectation: passes
   */
  @Test
  public void t31_createSession() throws Exception {
    SCMessage request = null;
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);

    ctrl.stopServer(srvCtxs.get(TestConstants.sesServerName1));

    msgCallback1 = new MsgCallback(sessionService1);
View Full Code Here


   * Description: exchange message after server was aborted<br>
   * Expectation: throws SCServiceException
   */
  @Test(expected = SCServiceException.class)
  public void t32_execute() throws Exception {
    SCMessage request = new SCMessage(TestConstants.pangram);
    request.setCompressed(false);
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);

    ctrl.stopServer(srvCtxs.get(TestConstants.sesServerName1));
View Full Code Here

   * Description: exchange message after server was aborted with operation timeout = 30<br>
   * Expectation: throws SCServiceException
   */
  @Test(expected = SCServiceException.class)
  public void t33_execute() throws Exception {
    SCMessage request = new SCMessage(TestConstants.pangram);
    request.setCompressed(false);
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);

    ctrl.stopServer(srvCtxs.get(TestConstants.sesServerName1));
View Full Code Here

   * Description: send message after server was aborted <br>
   * Expectation: passes because exception is given to callback and handled there
   */
  @Test
  public void t34_send() throws Exception {
    SCMessage request = new SCMessage(TestConstants.pangram);
    request.setCompressed(false);
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);
    request.setMessageInfo(TestConstants.echoCmd);
    messageReceived = false;
View Full Code Here

   * Description: delete session after server was aborted<br>
   * Expectation: throws SCMPValidatorException
   */
  @Test(expected = SCMPValidatorException.class)
  public void t35_deleteSession() throws Exception {
    SCMessage request = null;
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);

    ctrl.stopServer(srvCtxs.get(TestConstants.sesServerName1));
View Full Code Here

   * Description: exchange one message after server has been restarted<br>
   * Expectation: throws SCServiceException
   */
  @Test(expected = SCServiceException.class)
  public void t50_execute() throws Exception {
    SCMessage request = new SCMessage(TestConstants.pangram);
    request.setCompressed(false);
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);
    request.setMessageInfo(TestConstants.echoAppErrorCmd);

View Full Code Here

   * Description: delete session after server has been restarted<br>
   * Expectation: throws SCMPValidatorException
   */
  @Test(expected = SCMPValidatorException.class)
  public void t51_deleteSession() throws Exception {
    SCMessage request = null;
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);

    ctrl.stopServer(srvCtxs.get(TestConstants.sesServerName1));
View Full Code Here

   * Description: Create session (regular)<br>
   * Expectation: passes
   */
  @Test
  public void t01_createSession() throws Exception {
    SCMessage request = new SCMessage();
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);
    Assert.assertNotNull("the session ID is null", sessionService1.getSessionId());
    sessionService1.deleteSession();
View Full Code Here

   * Description: Create session to publish service<br>
   * Expectation: throws SCMPValidatorException
   */
  @Test(expected = SCMPValidatorException.class)
  public void t06_createSession() throws Exception {
    SCMessage request = null;
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.pubServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);
  }
View Full Code Here

   * create session (sessionService)<br>
   * TODO JOT/TRN how do we distinguish between session for file services??
   */
  @Test(expected = SCMPValidatorException.class)
  public void t07_createSession() throws Exception {
    SCMessage request = null;
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.filServiceName1);
    msgCallback1 = new MsgCallback(sessionService1);
    response = sessionService1.createSession(request, msgCallback1);
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.api.SCMessage

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.