15 #include "utilities.hpp"
20 #include <sbml/SBMLDocument.h>
21 #include <sbml/Model.h>
60 CPPUNIT_ASSERT_MESSAGE(
"The model should have failed loading because it contains a required package.", failed ==
true);
68 CPPUNIT_ASSERT(result ==
true);
70 CPPUNIT_ASSERT(pModel != NULL);
80 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
81 "<sbml xmlns=\"http://www.sbml.org/sbml/level3/version1/core\" level=\"3\" version=\"1\"\n"
82 " xmlns:ppp=\"http://www.sbml.org/sbml/level3/version1/some_package/version1\"\n"
83 " ppp:required=\"true\">\n"
84 " <model id=\"Model_1\" name=\"New Model\">\n"
85 " <ppp:some_package>\n"
86 " </ppp:some_package>\n"
95 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
96 "<sbml xmlns=\"http://www.sbml.org/sbml/level3/version1/core\" level=\"3\" version=\"1\"\n"
97 " xmlns:ppp=\"http://www.sbml.org/sbml/level3/version1/some_package/version1\"\n"
98 " ppp:required=\"false\">\n"
99 " <model id=\"Model_1\" name=\"New Model\">\n"
SBMLDocument * getCurrentSBMLDocument()
static CCopasiDataModel * pCOPASIDATAMODEL
void test_notrequired_package()
void test_required_package()
static const char * MODEL_STRING2
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)
static const char * MODEL_STRING1