Package com.hciware.camture.ws

Source Code of com.hciware.camture.ws.CamtureConnectionTest

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.hciware.camture.ws;

import com.hciware.camture.streamsws.ConnectionType;
import com.hciware.camture.streamsws.ImageInfoType;
import com.hciware.camture.streamsws.ResultType;
import com.hciware.camture.streamsws.StreamRequestResponseType;
import com.hciware.camture.streamsws.StreamRequestType;
import com.hciware.camture.streamsws.StreamSelect;
import com.hciware.camture.streamsws.StreamStopRequestType;
import com.hciware.camture.streamsws.TimePeriodType;
import com.hciware.camture.ws.CamtureConnection.StreamSelectType;
import java.util.Date;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
*
* @author andrew
*/
public class CamtureConnectionTest {

    public CamtureConnectionTest() {
    }

  @BeforeClass
  public static void setUpClass() throws Exception {
  }

  @AfterClass
  public static void tearDownClass() throws Exception {
  }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

  /**
   * Test of sendRequest method, of class CamtureConnection.
   */
  @Test
  public void testSendRequest() {
    System.out.println("sendRequest");
    StreamRequestType request = null;
    CamtureConnection instance = null;
    StreamRequestResponseType expResult = null;
    StreamRequestResponseType result = instance.sendRequest(request);
    assertEquals(expResult, result);
    // TODO review the generated test code and remove the default call to fail.
    fail("The test case is a prototype.");
  }

  /**
   * Test of sendStopRequest method, of class CamtureConnection.
   */
  @Test
  public void testSendStopRequest() {
    System.out.println("sendStopRequest");
    StreamStopRequestType request = null;
    CamtureConnection instance = null;
    ResultType expResult = null;
    ResultType result = instance.sendStopRequest(request);
    assertEquals(expResult, result);
    // TODO review the generated test code and remove the default call to fail.
    fail("The test case is a prototype.");
  }

  /**
   * Test of createStopRequest method, of class CamtureConnection.
   */
  @Test
  public void testCreateStopRequest() {
    System.out.println("createStopRequest");
    ConnectionType connection = null;
    long streamId = 0L;
    CamtureConnection instance = null;
    StreamStopRequestType expResult = null;
    StreamStopRequestType result = instance.createStopRequest(connection, streamId);
    assertEquals(expResult, result);
    // TODO review the generated test code and remove the default call to fail.
    fail("The test case is a prototype.");
  }

  /**
   * Test of createStreamRequest method, of class CamtureConnection.
   */
  @Test
  public void testCreateStreamRequest() {
    System.out.println("createStreamRequest");
    StreamSelect stream = null;
    ImageInfoType imageInfo = null;
    TimePeriodType time = null;
    ConnectionType connection = null;
    CamtureConnection instance = null;
    StreamRequestType expResult = null;
    StreamRequestType result = instance.createStreamRequest(stream, imageInfo, time, connection);
    assertEquals(expResult, result);
    // TODO review the generated test code and remove the default call to fail.
    fail("The test case is a prototype.");
  }

  /**
   * Test of createStreamSelect method, of class CamtureConnection.
   */
  @Test
  public void testCreateStreamSelect() {
    System.out.println("createStreamSelect");
    StreamSelectType type = null;
    int selectId = 0;
    CamtureConnection instance = null;
    StreamSelect expResult = null;
    StreamSelect result = instance.createStreamSelect(type, selectId);
    assertEquals(expResult, result);
    // TODO review the generated test code and remove the default call to fail.
    fail("The test case is a prototype.");
  }

  /**
   * Test of createImageInfo method, of class CamtureConnection.
   */
  @Test
  public void testCreateImageInfo() {
    System.out.println("createImageInfo");
    int width = 0;
    int height = 0;
    int colourDepth = 0;
    int quality = 0;
    CamtureConnection instance = null;
    ImageInfoType expResult = null;
    ImageInfoType result = instance.createImageInfo(width, height, colourDepth, quality);
    assertEquals(expResult, result);
    // TODO review the generated test code and remove the default call to fail.
    fail("The test case is a prototype.");
  }

  /**
   * Test of createConnection method, of class CamtureConnection.
   */
  @Test
  public void testCreateConnection() {
    System.out.println("createConnection");
    int port = 0;
    CamtureConnection instance = null;
    ConnectionType expResult = null;
    ConnectionType result = instance.createConnection(port);
    assertEquals(expResult, result);
    // TODO review the generated test code and remove the default call to fail.
    fail("The test case is a prototype.");
  }

 

}
TOP

Related Classes of com.hciware.camture.ws.CamtureConnectionTest

TOP
Copyright © 2018 www.massapi.com. 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.