MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkNDIProtocolTest.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#include "mitkNDIProtocol.h"
14
15#include "mitkTestingMacros.h"
16
17#include <iostream>
18
39
43int mitkNDIProtocolTest(int /* argc */, char* /*argv*/[])
44{
45 // always start with this!
46 MITK_TEST_BEGIN("NDIProtocolTest");
47
48 // let's create an object of our class
49 mitk::NDIProtocol::Pointer myNDIProtocol = NDIProtocolTestClass::New().GetPointer();
50
51 // first test: did this work?
52 // using MITK_TEST_CONDITION_REQUIRED makes the test stop after failure, since
53 // it makes no sense to continue without an object.
54 MITK_TEST_CONDITION_REQUIRED(myNDIProtocol.IsNotNull(),"Testing instantiation");
55
56
57 //COMM(mitk::SerialCommunication::BaudRate baudRate , mitk::SerialCommunication::DataBits dataBits, mitk::SerialCommunication::Parity parity, mitk::SerialCommunication::StopBits stopBits, mitk::SerialCommunication::HardwareHandshake hardwareHandshake)
58 //No testing possible, hardware required
59
60
61
62 //All other methods
63 //No testing possible, hardware required
64
65
66
67 // always end with this!
68 MITK_TEST_END();
69}
itkFactorylessNewMacro(Self) itkCloneMacro(Self) protected
mitkClassMacro(NDIProtocolTestClass, NDIProtocol)
The NDI Protocol class provides building and parsing of command strings and answers to and from a NDI...
int mitkNDIProtocolTest(int, char *[])
IGT Exceptions.