RIC:1060: Change in PTL
[ric-plt/sdl.git] / tst / syncstorage_test.cpp
index 74409ca..9467ef9 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/syncstorage.hpp>
@@ -37,3 +42,9 @@ TEST(SyncStorageTest, IsAbstract)
 {
     EXPECT_TRUE(std::is_abstract<SyncStorage>::value);
 }
+
+TEST(SyncStorageTest, SyncStorageCreateInstanceHasCorrectType)
+{
+    auto syncStorageInstance(shareddatalayer::SyncStorage::create());
+    EXPECT_EQ(typeid(std::unique_ptr<SyncStorage>), typeid(syncStorageInstance));
+}