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

#include <test000070.h>

Inheritance diagram for test000070:
Inheritance graph
[legend]
Collaboration diagram for test000070:
Collaboration graph
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 
void test_bug1084 ()
 

Static Protected Attributes

static const char * MODEL_STRING1
 
static CCopasiDataModelpCOPASIDATAMODEL = NULL
 

Private Member Functions

 CPPUNIT_TEST (test_bug1084)
 
 CPPUNIT_TEST_SUITE (test000070)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 26 of file test000070.h.

Member Function Documentation

test000070::CPPUNIT_TEST ( test_bug1084  )
private
test000070::CPPUNIT_TEST_SUITE ( test000070  )
private
test000070::CPPUNIT_TEST_SUITE_END ( )
private
void test000070::setUp ( )

Definition at line 34 of file test000070.cpp.

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

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

Definition at line 42 of file test000070.cpp.

References CCopasiRootContainer::destroy().

void test000070::test_bug1084 ( )

Definition at line 47 of file test000070.cpp.

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

48 {
49  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
50  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING1));
51  // now try to export several times
52  unsigned int i, iMax = 5;
53 
54  for (i = 0; i < iMax; ++i)
55  {
56  std::string s = pDataModel->exportSBMLToString(NULL, 2, 3);
57  CPPUNIT_ASSERT(!s.empty());
58  }
59 }
std::string exportSBMLToString(CProcessReport *pExportHandler, int sbmlLevel, int sbmlVersion)
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000070.h:34
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static const char * MODEL_STRING1
Definition: test000070.h:33

Member Data Documentation

const char * test000070::MODEL_STRING1
staticprotected

Definition at line 33 of file test000070.h.

Referenced by test_bug1084().

CCopasiDataModel * test000070::pCOPASIDATAMODEL = NULL
staticprotected

These tests are supposed to make sure that assignments on a species with the hasOnlySubstanceUnits flag set are exported correctly. It tests rules and event assignments with and without the flag set.

Definition at line 34 of file test000070.h.

Referenced by setUp(), and test_bug1084().


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