COPASI API  4.16.103
Public Member Functions | Static Protected Attributes | Private Member Functions | List of all members
test000074 Class Reference

#include <test000074.h>

Inheritance diagram for test000074:
Inheritance graph
Collaboration diagram for test000074:
Collaboration graph

Public Member Functions

void setUp ()
void tearDown ()
void test_bug1088 ()

Static Protected Attributes

static const char * MODEL_STRING1
static CCopasiDataModelpCOPASIDATAMODEL = NULL

Private Member Functions

 CPPUNIT_TEST (test_bug1088)
 CPPUNIT_TEST_SUITE (test000074)

Detailed Description

Definition at line 26 of file test000074.h.

Member Function Documentation

test000074::CPPUNIT_TEST ( test_bug1088  )
test000074::CPPUNIT_TEST_SUITE ( test000074  )
test000074::CPPUNIT_TEST_SUITE_END ( )
void test000074::setUp ( )

Definition at line 33 of file test000074.cpp.

References CCopasiRootContainer::addDatamodel(), CCopasiRootContainer::init(), and pCOPASIDATAMODEL.

34 {
35  // Create the root container.
36  CCopasiRootContainer::init(0, NULL, false);
37  // Create the global data model.
39 }
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000074.h:34
static CCopasiDataModel * addDatamodel()
static void init(int argc, char *argv[], const bool &withGui=false)
void test000074::tearDown ( )

Definition at line 41 of file test000074.cpp.

References CCopasiRootContainer::destroy().

void test000074::test_bug1088 ( )

Definition at line 46 of file test000074.cpp.

References CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING1, and pCOPASIDATAMODEL.

47 {
48  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
49  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING1));
50  std::string s = pDataModel->exportSBMLToString(NULL, 2, 3);
51  CPPUNIT_ASSERT(!s.empty());
52 }
std::string exportSBMLToString(CProcessReport *pExportHandler, int sbmlLevel, int sbmlVersion)
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000074.h:34
static const char * MODEL_STRING1
Definition: test000074.h:33
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)

Member Data Documentation

const char * test000074::MODEL_STRING1

Definition at line 33 of file test000074.h.

Referenced by test_bug1088().

CCopasiDataModel * test000074::pCOPASIDATAMODEL = NULL

Make sure importing a model with COPASI MIRIAM annotation and exporting it again does not CRASH

Definition at line 34 of file test000074.h.

Referenced by setUp(), and test_bug1088().

The documentation for this class was generated from the following files: