X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tst%2Fasyncstorage_test.cpp;h=3ee1d5ff4fb34224f253a9c3bc5156897eba437c;hb=ece67088;hp=12c608eb7a4d9ec2fd6eddcf0cfc223157292f16;hpb=ef2bf51d04aaf01fa0cabdcaf905b23423067662;p=ric-plt%2Fsdl.git diff --git a/tst/asyncstorage_test.cpp b/tst/asyncstorage_test.cpp index 12c608e..3ee1d5f 100644 --- a/tst/asyncstorage_test.cpp +++ b/tst/asyncstorage_test.cpp @@ -14,6 +14,11 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). +*/ + #include #include #include @@ -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), typeid(asyncStorageInstance)); +}