COPASI API  4.16.103
test000101.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/test000101.h,v $
3 // $Revision: 1.2 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/12/01 13:22:01 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #ifndef TEST_000101_H__
15 #define TEST_000101_H__
16 
17 
18 #include <cppunit/TestFixture.h>
19 #include <cppunit/TestSuite.h>
20 #include <cppunit/TestResult.h>
21 #include <cppunit/extensions/HelperMacros.h>
22 
23 /**
24  * Test for bug 1740.
25  * Importing an SBML model with an empty reaction
26  * will lead to a crash if the model is exported to SBML Level 3 Version 1 twice.
27  */
28 
29 class CCopasiDataModel;
30 
31 class test000101 : public CppUnit::TestFixture
32 {
36 
37 protected:
38  // SBML model for the test
39  static const char* SBML_STRING;
40 
42 
43  static struct sigaction* pNewAct;
44  static struct sigaction* pOldAct;
45 
46  static void abort_handler(int);
47 
48 public:
49  void setUp();
50 
51  void tearDown();
52 
53  void test_bug1740();
54 
55 };
56 
57 #endif /* TEST000101_H__ */
CPPUNIT_TEST(test_bug1740)
static struct sigaction * pOldAct
Definition: test000101.h:44
void tearDown()
Definition: test000101.cpp:59
static struct sigaction * pNewAct
Definition: test000101.h:43
void test_bug1740()
Definition: test000101.cpp:76
static const char * SBML_STRING
Definition: test000101.h:39
CPPUNIT_TEST_SUITE_END()
static void abort_handler(int)
Definition: test000101.cpp:30
void setUp()
Definition: test000101.cpp:39
CCopasiDataModel * pDataModel
Definition: test000101.h:41
CPPUNIT_TEST_SUITE(test000101)