Line data Source code
1 : /**
2 : * @file DaphneInterface_test.cxx
3 : *
4 : * This file provides a skeleton off of which developers can write
5 : * unit tests for their package. The file is meant to be renamed as
6 : * well as edited (where editing includes replacing this comment with
7 : * an actual description of the unit test suite)
8 : *
9 : * This is part of the DUNE DAQ Application Framework, copyright 2020.
10 : * Licensing/copyright details are in the COPYING file that you should have
11 : * received with this code.
12 : */
13 :
14 : #define BOOST_TEST_MODULE DaphneInterface_test // NOLINT
15 :
16 : #include "boost/test/unit_test.hpp"
17 : #include "DaphneV2Interface.hpp"
18 :
19 : BOOST_AUTO_TEST_SUITE(DaphneInterface_test)
20 :
21 2 : BOOST_AUTO_TEST_CASE(Construction)
22 : {
23 :
24 1 : using namespace std::chrono;
25 :
26 2 : BOOST_CHECK_THROW( dunedaq::daphnemodules::DaphneV2Interface i("non.exising.ip", 1000, milliseconds(5)),
27 : dunedaq::daphnemodules::InvalidIPAddress );
28 :
29 1 : }
30 :
31 : BOOST_AUTO_TEST_SUITE_END()
|