unittest_new_udp_read_timeout_exception.cpp
Go to the documentation of this file.
1 // Copyright (c) 2019 Pilz GmbH & Co. KG
2 //
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU Lesser General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public License
14 // along with this program. If not, see <https://www.gnu.org/licenses/>.
15 
16 #include <gtest/gtest.h>
18 
19 using namespace psen_scan;
20 
21 namespace psen_scan_test
22 {
23 TEST(UDPReadTimeoutExceptionTest, new_udp_read_timeout_exception)
24 {
25  std::string except_str = "UDPReadTimeoutException";
26  std::unique_ptr<UDPReadTimeoutException> e(new UDPReadTimeoutException(except_str));
27  EXPECT_EQ(except_str, e->what());
28 }
29 } // namespace psen_scan_test
TEST(UDPReadTimeoutExceptionTest, new_udp_read_timeout_exception)


psen_scan
Author(s):
autogenerated on Mon Feb 28 2022 23:16:20