Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
freeopcua
tests
core
common
error_test.cpp
Go to the documentation of this file.
1
11
#include <
opc/common/exception.h
>
12
13
#include <cppunit/extensions/HelperMacros.h>
14
#include <cppunit/config/SourcePrefix.h>
15
#include <iostream>
16
17
class
ErrorTestCase
:
public
CPPUNIT_NS::TestFixture
18
{
19
CPPUNIT_TEST_SUITE
(
ErrorTestCase
);
20
CPPUNIT_TEST
(
Test
);
21
CPPUNIT_TEST_SUITE_END
();
22
23
protected
:
24
void
Test
();
25
};
26
27
CPPUNIT_TEST_SUITE_REGISTRATION
(
ErrorTestCase
);
28
29
void
ErrorTestCase::Test
()
30
{
31
Common::Error
(1,
"test_file"
, 2,
"test_message"
);
32
}
ErrorTestCase::CPPUNIT_TEST_SUITE
CPPUNIT_TEST_SUITE(ErrorTestCase)
CPPUNIT_TEST_SUITE_REGISTRATION
CPPUNIT_TEST_SUITE_REGISTRATION(ErrorTestCase)
ErrorTestCase::CPPUNIT_TEST_SUITE_END
CPPUNIT_TEST_SUITE_END()
ErrorTestCase
Tests of Common::Error GNU LGPL.
Definition:
error_test.cpp:17
ErrorTestCase::CPPUNIT_TEST
CPPUNIT_TEST(Test)
exception.h
ErrorTestCase::Test
void Test()
Definition:
error_test.cpp:29
Common::Error
Definition:
exception.h:42
ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:06:04