21 #include "utilities.hpp"
52 CPPUNIT_ASSERT(
false);
55 CPPUNIT_ASSERT(pDataModel->
getModel() != NULL);
62 for (i = 0; i < iMax; ++i)
73 CPPUNIT_ASSERT(i != iMax);
75 std::string text = message.
getText();
76 CPPUNIT_ASSERT(text.find(
"reaction1") == std::string::npos);
77 CPPUNIT_ASSERT(text.find(
"reaction2") == std::string::npos);
78 CPPUNIT_ASSERT(text.find(
"reaction3") != std::string::npos);
82 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
83 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">\n"
84 " <model metaid=\"COPASI1\" id=\"Model_1\" name=\"test000079\">\n"
86 " <html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
88 " <meta name=\"qrichtext\" content=\"1\"/>\n"
90 " <body style=\"font-size:13pt;font-family:Lucida Grande\">\n"
91 " <p>Model to test import the fast flag.</p>\n"
95 " <listOfCompartments>\n"
96 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>\n"
97 " </listOfCompartments>\n"
99 " <species id=\"species_1\" name=\"S1\" compartment=\"compartment_1\" initialConcentration=\"1\"/>\n"
100 " <species id=\"species_2\" name=\"S2\" compartment=\"compartment_1\" initialConcentration=\"1\"/>\n"
101 " <species id=\"species_3\" name=\"S3\" compartment=\"compartment_1\" initialConcentration=\"1\"/>\n"
102 " </listOfSpecies>\n"
103 " <listOfParameters>\n"
104 " <parameter id=\"parameter_1\" name=\"k\" value=\"1\" units=\"time\"/>\n"
105 " </listOfParameters>\n"
106 " <listOfReactions>\n"
107 " <reaction id=\"reaction1\" fast=\"false\">\n"
108 " <listOfReactants>\n"
109 " <speciesReference species=\"species_1\"/>\n"
110 " </listOfReactants>\n"
112 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
117 " <ci> compartment_1 </ci>\n"
118 " <ci> species_1 </ci>\n"
120 " <ci> parameter_1 </ci>\n"
125 " <reaction id=\"reaction2\">\n"
126 " <listOfReactants>\n"
127 " <speciesReference species=\"species_2\"/>\n"
128 " </listOfReactants>\n"
130 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
135 " <ci> compartment_1 </ci>\n"
136 " <ci> species_2 </ci>\n"
138 " <ci> parameter_1 </ci>\n"
143 " <reaction id=\"reaction3\" fast=\"true\">\n"
144 " <listOfReactants>\n"
145 " <speciesReference species=\"species_3\"/>\n"
146 " </listOfReactants>\n"
148 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
153 " <ci> compartment_1 </ci>\n"
154 " <ci> species_3 </ci>\n"
156 " <ci> parameter_1 </ci>\n"
161 " </listOfReactions>\n"
static CCopasiDataModel * pCOPASIDATAMODEL
const std::string & getText() const
const size_t & getNumber() const
static CCopasiDataModel * addDatamodel()
static const char * MODEL_STRING1
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static void init(int argc, char *argv[], const bool &withGui=false)