BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implements class CLASS? More...
Go to the source code of this file.
Classes | |
class | JsonDocumentTest |
Tests JsonDocument class. More... | |
class | JsonDocumentTest::TestModel1 |
class | JsonDocumentTest::TestModel2 |
Functions | |
TEST_F (JsonDocumentTest, loadModelsInWrongOrder) | |
Attempt to restore models in wrong order. More... | |
TEST_F (JsonDocumentTest, saveLoadSingleModel) | |
Saving the model with content into document and restoring it after. More... | |
TEST_F (JsonDocumentTest, saveLoadTwoModels) | |
Saving two models with content into document and restoring it after. More... | |
Implements class CLASS?
Definition in file jsondocument.test.cpp.
TEST_F | ( | JsonDocumentTest | , |
loadModelsInWrongOrder | |||
) |
Attempt to restore models in wrong order.
Definition at line 150 of file jsondocument.test.cpp.
References ModelView::SessionItem::identifier(), ModelView::JsonDocument::save(), and TestUtils::TestFileName().
TEST_F | ( | JsonDocumentTest | , |
saveLoadSingleModel | |||
) |
Saving the model with content into document and restoring it after.
Definition at line 54 of file jsondocument.test.cpp.
References ModelView::Constants::BaseType, ModelView::SessionItem::getItem(), ModelView::SessionItem::identifier(), ModelView::SessionModel::insertItem(), ModelView::Constants::PropertyType, ModelView::SessionItem::registerTag(), ModelView::SessionModel::removeItem(), ModelView::SessionModel::rootItem(), ModelView::SessionItem::setDisplayName(), ModelView::PropertyItem::setDisplayName(), TestUtils::TestFileName(), and ModelView::TagInfo::universalTag().
TEST_F | ( | JsonDocumentTest | , |
saveLoadTwoModels | |||
) |
Saving two models with content into document and restoring it after.
Definition at line 108 of file jsondocument.test.cpp.
References ModelView::SessionItem::identifier(), and TestUtils::TestFileName().