diff --git a/services/ans/test/unittest/advanced_notification_live_view_service_test.cpp b/services/ans/test/unittest/advanced_notification_live_view_service_test.cpp index de6f6d9976788f67a05ffacf77204d08f12817e1..621f2a822c9269e134dee2e4513233a2cd20b68e 100644 --- a/services/ans/test/unittest/advanced_notification_live_view_service_test.cpp +++ b/services/ans/test/unittest/advanced_notification_live_view_service_test.cpp @@ -310,5 +310,19 @@ HWTEST_F(AnsLiveViewServiceTest, IsSaCreateSystemLiveViewAsBundle_002, Function flag = advancedNotificationService_->IsSaCreateSystemLiveViewAsBundle(record, creatorUid); ASSERT_EQ(flag, false); } + +/** + * @tc.name: GetNotificationRequestFromDb_00002 + * @tc.desc: Test GetNotificationRequestFromDb + * @tc.type: FUNC + * @tc.require: issue + */ +HWTEST_F(AnsLiveViewServiceTest, GetNotificationRequestFromDb_00002, Function | SmallTest | Level1) +{ + AdvancedNotificationService::NotificationRequestDb requestsdb; + std::string key = "ans_live_view_001"; + auto ret = advancedNotificationService_->GetNotificationRequestFromDb(key, requestsdb); + EXPECT_NE(ret, (int)ERR_OK); +} } // namespace Notification } // namespace OHOS