RIC:1060: Change in PTL
[ric-plt/sdl.git] / tst / asyncstorage_test.cpp
index 12c608e..3ee1d5f 100644 (file)
    limitations under the License.
 */
 
+/*
+ * This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ * platform project (RICP).
+*/
+
 #include <type_traits>
 #include <gtest/gtest.h>
 #include <sdl/asyncstorage.hpp>
@@ -48,3 +53,9 @@ TEST(AsyncStorageTest, CanThrowWhenDisallowedSeparatorCharacterIsUsedInNamespace
     const std::string notValidNamespace(std::string("someNamespace") + AsyncStorage::SEPARATOR);
     EXPECT_THROW(validateNamespace(notValidNamespace), InvalidNamespace);
 }
+
+TEST(AsyncStorageTest, AsyncStorageCreateInstanceHasCorrectType)
+{
+    auto asyncStorageInstance(shareddatalayer::AsyncStorage::create());
+    EXPECT_EQ(typeid(std::unique_ptr<AsyncStorage>), typeid(asyncStorageInstance));
+}