#include <boost/test/unit_test.hpp>
#include <oret/datapaths.hpp>
#include <oret/fileutilities.hpp>
#include <oret/toplevelfixture.hpp>
#include <ored/model/irlgmdata.hpp>
#include <ored/model/calibrationinstruments/cpicapfloor.hpp>
#include <ored/model/crossassetmodeldata.hpp>
#include <ored/model/inflation/infdkdata.hpp>
#include <ored/utilities/correlationmatrix.hpp>
Go to the source code of this file.
◆ BOOST_AUTO_TEST_CASE()
BOOST_AUTO_TEST_CASE |
( |
testToXMLFromXML |
| ) |
|
Definition at line 326 of file crossassetmodeldata.cpp.
326 {
327
328 BOOST_TEST_MESSAGE("Testing toXML/fromXML...");
329
332
335
338
339 std::string filename = TEST_OUTPUT_FILE("simulationtest.xml");
341
344
345 BOOST_CHECK(data == newData);
346
348 BOOST_CHECK(data != newData);
349}
Cross Asset Model Parameters.
const vector< QuantLib::ext::shared_ptr< IrModelData > > & irConfigs() const
Small XML Document wrapper class.
void appendNode(XMLNode *)
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
void toFile(const string &filename) const
save the XML Document to the given file.
void fromFile(const std::string &filename)
static void appendNode(XMLNode *parent, XMLNode *child)