17 #include "utilities.hpp"
43 std::vector< CCopasiContainer * > listOfContainer;
55 CPPUNIT_ASSERT(pModel == NULL);
58 CPPUNIT_ASSERT(pModel2 == NULL);
74 CPPUNIT_ASSERT(pModel != NULL);
77 CPPUNIT_ASSERT(pModel == pModel2);
81 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
82 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">\n"
83 " <model name=\"my test model\">\n"
84 " <listOfCompartments>\n"
85 " <compartment id=\"compartment_1\" size=\"1.0\"/>\n"
86 " </listOfCompartments>\n"
88 " <species id=\"species_1\" compartment=\"compartment_1\" initialConcentration=\"1.0\"/>\n"
89 " <species id=\"species_2\" compartment=\"compartment_1\" initialConcentration=\"1.0\"/>\n"
91 " <listOfReactions>\n"
92 " <reaction id=\"reaction_1\">\n"
93 " <listOfReactants>\n"
94 " <speciesReference species=\"species_1\"/>\n"
95 " </listOfReactants>\n"
97 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
100 " <ci> species_1 </ci>\n"
101 " <ci> species_2 </ci>\n"
106 " </listOfReactions>\n"
113 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
114 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">\n"
115 " <model name=\"my test model\">\n"
116 " <listOfCompartments>\n"
117 " <compartment id=\"compartment_1\" size=\"1.0\"/>\n"
118 " </listOfCompartments>\n"
120 " <species id=\"species_1\" compartment=\"compartment_1\" initialConcentration=\"1.0\"/>\n"
121 " <species id=\"species_2\" compartment=\"compartment_1\" initialConcentration=\"1.0\"/>\n"
122 " </listOfSpecies>\n"
123 " <listOfReactions>\n"
124 " <reaction id=\"reaction_1\">\n"
125 " <listOfReactants>\n"
126 " <speciesReference species=\"species_1\"/>\n"
127 " </listOfReactants>\n"
128 " <listOfModifiers>\n"
129 " <modifierSpeciesReference species=\"species_2\"/>\n"
130 " </listOfModifiers>\n"
132 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
135 " <ci> species_1 </ci>\n"
136 " <ci> species_2 </ci>\n"
141 " </listOfReactions>\n"
static const char * SBML_MODEL_BAD
virtual CCopasiObjectName getCN() const
static const char * SBML_MODEL_GOOD
CCopasiDataModel * pDataModel
Header file of class CCopasiContainer.
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)
CCopasiObject * ObjectFromName(const std::vector< CCopasiContainer * > &listOfContainer, const CCopasiObjectName &CN) const