32 CPPUNIT_ASSERT(pModel != NULL);
33 std::string id(
"MyTestModel");
35 CPPUNIT_ASSERT(pModel->
getSBMLId() == id);
39 CPPUNIT_ASSERT(pModel != NULL);
40 CPPUNIT_ASSERT(pModel->
getSBMLId() == id);
43 CPPUNIT_ASSERT(pModel != NULL);
44 CPPUNIT_ASSERT(pModel->
getSBMLId() != id);
49 CPPUNIT_ASSERT(result ==
true);
53 CPPUNIT_ASSERT_MESSAGE(
"Exception while importing the exported model string.",
false);
57 CPPUNIT_ASSERT(pModel != NULL);
58 CPPUNIT_ASSERT(pModel->
getSBMLId() == id);
64 CPPUNIT_ASSERT(pModel != NULL);
65 std::string id(
"MyTestModel");
67 CPPUNIT_ASSERT(pModel->
getSBMLId() == id);
71 CPPUNIT_ASSERT(pModel != NULL);
72 CPPUNIT_ASSERT(pModel->
getSBMLId() == id);
75 CPPUNIT_ASSERT(pModel != NULL);
76 CPPUNIT_ASSERT(pModel->
getSBMLId() != id);
81 CPPUNIT_ASSERT(result ==
true);
85 CPPUNIT_ASSERT_MESSAGE(
"Exception while importing the exported model string.",
false);
89 CPPUNIT_ASSERT(pModel != NULL);
90 CPPUNIT_ASSERT(pModel->
getSBMLId() == id);
const std::string & getSBMLId() const
std::string exportSBMLToString(CProcessReport *pExportHandler, int sbmlLevel, int sbmlVersion)
bool newModel(CProcessReport *pProcessReport, const bool &deleteOldData)
static CCopasiDataModel * addDatamodel()
CCopasiDataModel * pDataModel
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static void init(int argc, char *argv[], const bool &withGui=false)
void setSBMLId(const std::string &id)