| 28 | #include "gtest/gtest.h" |
| 29 | |
| 30 | TEST(SecurityExceptionTest, ctor) |
| 31 | { |
| 32 | |
| 33 | cppmicroservices::Bundle b; |
| 34 | std::string excMessage { "foo" }; |
| 35 | cppmicroservices::SecurityException secException(excMessage, b); |
| 36 | |
| 37 | cppmicroservices::SecurityException copyOfException = secException; |
| 38 | |
| 39 | ASSERT_EQ(b, secException.GetBundle()); |
| 40 | ASSERT_STREQ(excMessage.c_str(), secException.what()); |
| 41 | |
| 42 | ASSERT_EQ(b, copyOfException.GetBundle()); |
| 43 | ASSERT_STREQ(excMessage.c_str(), copyOfException.what()); |
| 44 | } |