void airplaneTest::SetUp()
{
ASSERT_TRUE(this->msg_handler_.install_airplane(GetParam())
<< "Failed to install airplane " << GetParam();
airplane_id_ = airplane.airplane_id();
}
void airplaneTest::TearDown()
{
ASSERT_FALSE(airplane_id_.empty() );
ASSERT_TRUE(this->msg_handler_.remove_airplane(airplane_id_)) << "Failed to remove airplane " << GetParam();
}
//a lot of test case put into TEST_P
Google test will reinstall the airplane for diffrent test cases
But the action of install and remove are very expensive
What I would like to do is
only install and remove when the specific airplane(identify by GetParam) finish
all of the test cases
Could I finish this kind of job with google test?
Thanks a lot