COPASI API  4.16.103
test000059.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/test000059.h,v $
3 // $Revision: 1.6 $
4 // $Revision: 1.6 $
5 // $Name: $
6 // $Author: gauges $
7 // $Date: 2009/04/29 11:26:01 $
8 // End CVS Header
9 
10 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
11 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
12 // and The University of Manchester.
13 // All rights reserved.
14 
15 #ifndef TEST_000059_H__
16 #define TEST_000059_H__
17 
18 #include <cppunit/TestFixture.h>
19 #include <cppunit/TestSuite.h>
20 #include <cppunit/TestResult.h>
21 #include <cppunit/extensions/HelperMacros.h>
22 
23 class Model;
24 class CCopasiDataModel;
25 
26 /**
27  * These tests check if all elements in an SBML model get unique ids on export,
28  * even if one element that has been exported before has an id that might
29  * potentially be assigned to a different element that is exported later.
30  * e.g. a species being named "reaction_2"
31  * These tests assume a certain order for the export of elements.
32  */
33 
34 class test000059 : public CppUnit::TestFixture
35 {
61 
62 protected:
63  static const char* MODEL_STRING1;
64  static const char* MODEL_STRING2;
65  static const char* MODEL_STRING3;
66  static const char* MODEL_STRING4;
67  static const char* MODEL_STRING5;
68  static const char* MODEL_STRING6;
69  static const char* MODEL_STRING7;
70  static const char* MODEL_STRING8;
71  static const char* MODEL_STRING9;
72  static const char* MODEL_STRING10;
73  static const char* MODEL_STRING11;
74  static const char* MODEL_STRING12;
75  static const char* MODEL_STRING13;
76  static const char* MODEL_STRING14;
77  static const char* MODEL_STRING15;
78  static const char* MODEL_STRING16;
79  static const char* MODEL_STRING17;
80  static const char* MODEL_STRING18;
81  static const char* MODEL_STRING19;
82  static const char* MODEL_STRING20;
83  static const char* MODEL_STRING21;
84  static const char* MODEL_STRING22;
86 
87 public:
88  static bool checkIfIdsUnique(const Model* pSBMLModel);
89 
90  void setUp();
91 
92  void tearDown();
93 
94  // tests with SBML files
95  void test_unique_id_1();
96  void test_unique_id_2();
97  void test_unique_id_3();
98  void test_unique_id_4();
99  void test_unique_id_5();
100  void test_unique_id_6();
101  void test_unique_id_7();
102  void test_unique_id_8();
103  void test_unique_id_9();
104  void test_unique_id_10();
105  void test_unique_id_17();
106  void test_unique_id_18();
107  void test_unique_id_19();
108  void test_unique_id_20();
109 
110  // test with COPASI models
111  void test_unique_id_11();
112  void test_unique_id_12();
113  void test_unique_id_13();
114  void test_unique_id_14();
115  void test_unique_id_15();
116  void test_unique_id_16();
117 
118  // test for bug 1060
119  void test_unique_id_21();
120  void test_unique_id_21_2();
121 
122  // additional test for exporting references to local reaction parameters
123  // (Bug 1035)
124  void test_unique_id_22();
125 };
126 
127 #endif /* TEST000059_H__ */
void test_unique_id_10()
Definition: test000059.cpp:953
void test_unique_id_3()
Definition: test000059.cpp:635
void test_unique_id_7()
Definition: test000059.cpp:816
static const char * MODEL_STRING16
Definition: test000059.h:78
static const char * MODEL_STRING17
Definition: test000059.h:79
void test_unique_id_4()
Definition: test000059.cpp:680
static const char * MODEL_STRING22
Definition: test000059.h:84
static const char * MODEL_STRING4
Definition: test000059.h:66
void test_unique_id_19()
static const char * MODEL_STRING21
Definition: test000059.h:83
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000059.h:85
static const char * MODEL_STRING3
Definition: test000059.h:65
void test_unique_id_1()
Definition: test000059.cpp:545
void test_unique_id_5()
Definition: test000059.cpp:726
static bool checkIfIdsUnique(const Model *pSBMLModel)
Definition: test000059.cpp:44
static const char * MODEL_STRING14
Definition: test000059.h:76
void test_unique_id_22()
void test_unique_id_13()
void test_unique_id_16()
CPPUNIT_TEST(test_unique_id_1)
void test_unique_id_12()
void test_unique_id_15()
static const char * MODEL_STRING7
Definition: test000059.h:69
void test_unique_id_20()
static const char * MODEL_STRING15
Definition: test000059.h:77
void test_unique_id_21_2()
static const char * MODEL_STRING19
Definition: test000059.h:81
void test_unique_id_8()
Definition: test000059.cpp:862
static const char * MODEL_STRING11
Definition: test000059.h:73
void test_unique_id_2()
Definition: test000059.cpp:590
static const char * MODEL_STRING1
Definition: test000059.h:63
void test_unique_id_18()
static const char * MODEL_STRING20
Definition: test000059.h:82
static const char * MODEL_STRING6
Definition: test000059.h:68
void test_unique_id_6()
Definition: test000059.cpp:771
void tearDown()
Definition: test000059.cpp:39
void test_unique_id_21()
static const char * MODEL_STRING18
Definition: test000059.h:80
void test_unique_id_17()
CPPUNIT_TEST_SUITE(test000059)
static const char * MODEL_STRING9
Definition: test000059.h:71
static const char * MODEL_STRING8
Definition: test000059.h:70
static const char * MODEL_STRING12
Definition: test000059.h:74
static const char * MODEL_STRING13
Definition: test000059.h:75
CPPUNIT_TEST_SUITE_END()
void test_unique_id_11()
Definition: test000059.cpp:999
static const char * MODEL_STRING10
Definition: test000059.h:72
void test_unique_id_9()
Definition: test000059.cpp:907
static const char * MODEL_STRING2
Definition: test000059.h:64
void setUp()
Definition: test000059.cpp:31
void test_unique_id_14()
static const char * MODEL_STRING5
Definition: test000059.h:67