22 #include "utilities.hpp"
29 #include "sbml/SBMLDocument.h"
30 #include "sbml/Model.h"
31 #include "sbml/Species.h"
56 CPPUNIT_ASSERT(pModel != NULL);
60 CPPUNIT_ASSERT(pModelValue != NULL);
61 CPPUNIT_ASSERT(pModelValue->getObjectName() ==
"A");
63 CPPUNIT_ASSERT(pModelValue->getExpressionPtr() != NULL);
64 const CEvaluationNode* pRoot = pModelValue->getExpressionPtr()->getRoot();
65 CPPUNIT_ASSERT(pRoot != NULL);
68 CPPUNIT_ASSERT(pDocument == NULL);
70 bool exception =
false;
81 CPPUNIT_ASSERT(exception ==
true);
85 CPPUNIT_ASSERT(message.getNumber() ==
MCSBML + 70);
91 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
92 "<!-- generated with COPASI 4.4.26 (Debug) (http://www.copasi.org) at 2008-06-09 07:46:05 UTC -->"
93 "<COPASI xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.copasi.org/static/schema.xsd\" versionMajor=\"1\" versionMinor=\"0\" versionDevel=\"26\">"
94 " <Model key=\"Model_0\" name=\"Bug 1044\" timeUnit=\"s\" volumeUnit=\"ml\" quantityUnit=\"mmol\" type=\"deterministic\">"
96 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
100 " <ListOfModelValues>"
101 " <ModelValue key=\"ModelValue_0\" name=\"A\" simulationType=\"assignment\">"
103 " </ListOfModelValues>"
105 " <StateTemplateVariable objectReference=\"Model_0\"/>"
106 " <StateTemplateVariable objectReference=\"ModelValue_0\"/>"
108 " <InitialState type=\"initialState\">"
Header file of class CExpression.
SBMLDocument * getCurrentSBMLDocument()
Header file of class CModelEntity and CModelValue.
static const char * MODEL_STRING1
const CCopasiVectorN< CModelValue > & getModelValues() const
std::string exportSBMLToString(CProcessReport *pExportHandler, int sbmlLevel, int sbmlVersion)
virtual size_t size() const
bool load_cps_model_from_stream(std::istream &is, CCopasiDataModel &dataModel)
static Type type(const Type &type)
static CCopasiDataModel * addDatamodel()
static CCopasiMessage getLastMessage()
static void init(int argc, char *argv[], const bool &withGui=false)
static CCopasiDataModel * pCOPASIDATAMODEL