i != duplicates.end(); ++i) {
LOG_WARN(logger, LOG_DUPLICATE_MESSAGE_ID).arg(*i);
}
-
+ MessageInitializer::clearDuplicates();
}
// Replace any messages with local ones (if given)
// new symbol.
TEST_F(MessageDictionaryTest, GlobalLoadTest) {
+ // There were duplicates but the vector should be cleared in init() now
vector<string>& duplicates = MessageInitializer::getDuplicates();
- ASSERT_EQ(1, duplicates.size());
- EXPECT_EQ(string("LOG_DUPLICATE_NAMESPACE"), duplicates[0]);
+ ASSERT_EQ(0, duplicates.size());
string text = MessageDictionary::globalDictionary().getText("NEWSYM");
EXPECT_EQ(string("new symbol added"), text);