12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-04-07
- * Changed: 2023-04-07
- *
- * */
- #include <gtest/gtest.h>
- #include <ls-std/ls-std-core-jni.hpp>
- #include <ls-std/ls-std-core.hpp>
- using ls::std::core::IllegalArgumentException;
- using ls::std::core::JniApi;
- using testing::Test;
- namespace
- {
- class JniApiTest : public Test
- {
- public:
- JniApiTest() = default;
- ~JniApiTest() override = default;
- };
- TEST_F(JniApiTest, constructor)
- {
- EXPECT_THROW(
- {
- try
- {
- JniApi jniApi{nullptr};
- }
- catch (const IllegalArgumentException &_exception)
- {
- throw;
- }
- },
- IllegalArgumentException);
- }
- }
|