Removed setRecord() method ParserKeyword. Instead ParserRecord is created during ParserKeyword construction

This commit is contained in:
Joakim Hove
2013-07-31 15:02:00 +02:00
parent b7397ca502
commit db60ee2b56
5 changed files with 20 additions and 35 deletions

View File

@@ -66,12 +66,6 @@ BOOST_AUTO_TEST_CASE(ConstructFromJsonObject_missingName_throws) {
}
BOOST_AUTO_TEST_CASE(setRecord_validRecord_recordSet) {
ParserKeywordPtr parserKeyword(new ParserKeyword("JA"));
ParserRecordConstPtr parserRecord = ParserRecordConstPtr(new ParserRecord());
parserKeyword->setRecord(parserRecord);
BOOST_CHECK_EQUAL(parserRecord, parserKeyword->getRecord());
}
BOOST_AUTO_TEST_CASE(constructor_nametoolongwithfixedsize_exceptionthrown) {
std::string keyword("KEYWORDTOOLONG");