22 #include "utilities.hpp"
31 #include "sbml/SBMLDocument.h"
32 #include "sbml/Model.h"
33 #include "sbml/Reaction.h"
56 CPPUNIT_ASSERT(pDataModel->
getModel() != NULL);
59 CPPUNIT_ASSERT(pModelValue != NULL);
60 CPPUNIT_ASSERT(pModelValue->getSBMLId() ==
"parameter_1");
62 std::string formula = pModelValue->getExpression();
63 CPPUNIT_ASSERT(formula ==
"3.1*4.5");
67 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
68 "<sbml xmlns=\"http://www.sbml.org/sbml/level1\" level=\"1\" version=\"2\">\n"
69 " <model name=\"Model_1\" >\n"
71 " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
72 " <p>Level 1 model with rule on global parameter.</p>\n"
75 " <listOfParameters>\n"
76 " <parameter name=\"parameter_1\" value=\"1.1\" />\n"
77 " </listOfParameters>\n"
79 " <parameterRule formula=\"3.1 * 4.5\" name=\"parameter_1\"/>\n"
const CCopasiVectorN< CModelValue > & getModelValues() const
virtual size_t size() const
static CCopasiDataModel * pCOPASIDATAMODEL
static const char * MODEL_STRING1
static CCopasiDataModel * addDatamodel()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static void init(int argc, char *argv[], const bool &withGui=false)