IssueNo:#I4SFJ6: modify ut failed test case

Description: modify ut failed test case
Sig:SIG_ApplicationFramework
Feature or Bugfix:Feature
Binary Source:No

Signed-off-by: mingxihua <mingxihua@huawei.com>
This commit is contained in:
mingxihua 2022-01-27 12:37:45 +00:00
parent ded061511d
commit c9f68681a9
8 changed files with 8 additions and 1 deletions

View File

@ -125,6 +125,7 @@ void AbilityDumpTest::OnStartAms()
EXPECT_TRUE(g_abilityMs->eventLoop_);
g_abilityMs->handler_ = std::make_shared<AbilityEventHandler>(g_abilityMs->eventLoop_, g_abilityMs);
g_abilityMs->connectManager_ = std::make_shared<AbilityConnectManager>();
EXPECT_TRUE(g_abilityMs->handler_);
EXPECT_TRUE(g_abilityMs->connectManager_);

View File

@ -127,6 +127,7 @@ void AbilityManagerServiceTest::OnStartAms()
EXPECT_TRUE(abilityMs_->eventLoop_);
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
EXPECT_TRUE(abilityMs_->handler_);
EXPECT_TRUE(abilityMs_->connectManager_);

View File

@ -84,6 +84,7 @@ void AbilityStackManagerTest::OnStartabilityMs()
EXPECT_TRUE(abilityMs_->eventLoop_);
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
EXPECT_TRUE(abilityMs_->handler_);
EXPECT_TRUE(abilityMs_->connectManager_);

View File

@ -94,6 +94,7 @@ void AbilityWithApplicationsTest::OnStartabilityAms()
EXPECT_TRUE(abilityMs_->eventLoop_);
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
EXPECT_TRUE(abilityMs_->handler_);
EXPECT_TRUE(abilityMs_->connectManager_);

View File

@ -103,6 +103,7 @@ void AbilityMsAppmsTest::OnStartabilityAms()
EXPECT_TRUE(abilityMs_->eventLoop_);
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
EXPECT_TRUE(abilityMs_->handler_);
EXPECT_TRUE(abilityMs_->connectManager_);

View File

@ -103,6 +103,7 @@ void LifecycleTest::OnStartabilityAms()
EXPECT_TRUE(abilityMs_->eventLoop_);
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
EXPECT_TRUE(abilityMs_->handler_);
EXPECT_TRUE(abilityMs_->connectManager_);

View File

@ -137,6 +137,7 @@ void TerminateAbilityTest::OnStartAms()
EXPECT_TRUE(g_aams->eventLoop_);
g_aams->handler_ = std::make_shared<AbilityEventHandler>(g_aams->eventLoop_, g_aams);
g_aams->connectManager_ = std::make_shared<AbilityConnectManager>();
EXPECT_TRUE(g_aams->handler_);
EXPECT_TRUE(g_aams->connectManager_);

View File

@ -197,7 +197,7 @@ HWTEST_F(AaCommandScreenTest, Aa_Command_Screen_0700, Function | MediumTest | Le
int argc = sizeof(argv) / sizeof(argv[0]) - 1;
AbilityManagerShellCommand cmd(argc, argv);
EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_SCREEN);
EXPECT_EQ(cmd.ExecCommand(), "error: unknown option.\n" + HELP_MSG_SCREEN);
}
/**