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

#include <test000084.h>

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

Public Member Functions

void setUp ()
 
void tearDown ()
 
void test_import_compartment_units_1 ()
 
void test_import_compartment_units_10 ()
 
void test_import_compartment_units_11 ()
 
void test_import_compartment_units_12 ()
 
void test_import_compartment_units_13 ()
 
void test_import_compartment_units_14 ()
 
void test_import_compartment_units_15 ()
 
void test_import_compartment_units_16 ()
 
void test_import_compartment_units_17 ()
 
void test_import_compartment_units_18 ()
 
void test_import_compartment_units_19 ()
 
void test_import_compartment_units_2 ()
 
void test_import_compartment_units_20 ()
 
void test_import_compartment_units_21 ()
 
void test_import_compartment_units_3 ()
 
void test_import_compartment_units_4 ()
 
void test_import_compartment_units_5 ()
 
void test_import_compartment_units_6 ()
 
void test_import_compartment_units_7 ()
 
void test_import_compartment_units_8 ()
 
void test_import_compartment_units_9 ()
 

Static Protected Attributes

static const char * MODEL_STRING1
 
static const char * MODEL_STRING10
 
static const char * MODEL_STRING11
 
static const char * MODEL_STRING12
 
static const char * MODEL_STRING13
 
static const char * MODEL_STRING14
 
static const char * MODEL_STRING15
 
static const char * MODEL_STRING16
 
static const char * MODEL_STRING17
 
static const char * MODEL_STRING18
 
static const char * MODEL_STRING19
 
static const char * MODEL_STRING2
 
static const char * MODEL_STRING20
 
static const char * MODEL_STRING21
 
static const char * MODEL_STRING3
 
static const char * MODEL_STRING4
 
static const char * MODEL_STRING5
 
static const char * MODEL_STRING6
 
static const char * MODEL_STRING7
 
static const char * MODEL_STRING8
 
static const char * MODEL_STRING9
 
static CCopasiDataModelpCOPASIDATAMODEL = NULL
 

Private Member Functions

 CPPUNIT_TEST (test_import_compartment_units_1)
 
 CPPUNIT_TEST (test_import_compartment_units_2)
 
 CPPUNIT_TEST (test_import_compartment_units_3)
 
 CPPUNIT_TEST (test_import_compartment_units_4)
 
 CPPUNIT_TEST (test_import_compartment_units_5)
 
 CPPUNIT_TEST (test_import_compartment_units_6)
 
 CPPUNIT_TEST (test_import_compartment_units_7)
 
 CPPUNIT_TEST (test_import_compartment_units_8)
 
 CPPUNIT_TEST (test_import_compartment_units_9)
 
 CPPUNIT_TEST (test_import_compartment_units_10)
 
 CPPUNIT_TEST (test_import_compartment_units_11)
 
 CPPUNIT_TEST (test_import_compartment_units_12)
 
 CPPUNIT_TEST (test_import_compartment_units_13)
 
 CPPUNIT_TEST (test_import_compartment_units_14)
 
 CPPUNIT_TEST (test_import_compartment_units_15)
 
 CPPUNIT_TEST (test_import_compartment_units_16)
 
 CPPUNIT_TEST (test_import_compartment_units_17)
 
 CPPUNIT_TEST (test_import_compartment_units_18)
 
 CPPUNIT_TEST (test_import_compartment_units_19)
 
 CPPUNIT_TEST (test_import_compartment_units_20)
 
 CPPUNIT_TEST (test_import_compartment_units_21)
 
 CPPUNIT_TEST_SUITE (test000084)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 28 of file test000084.h.

Member Function Documentation

test000084::CPPUNIT_TEST ( test_import_compartment_units_1  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_2  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_3  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_4  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_5  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_6  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_7  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_8  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_9  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_10  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_11  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_12  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_13  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_14  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_15  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_16  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_17  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_18  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_19  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_20  )
private
test000084::CPPUNIT_TEST ( test_import_compartment_units_21  )
private
test000084::CPPUNIT_TEST_SUITE ( test000084  )
private
test000084::CPPUNIT_TEST_SUITE_END ( )
private
void test000084::setUp ( )

Definition at line 36 of file test000084.cpp.

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

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

Definition at line 44 of file test000084.cpp.

References CCopasiRootContainer::destroy().

void test000084::test_import_compartment_units_1 ( )

Definition at line 49 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), MCSBML, MODEL_STRING1, CModel::nm2, pCOPASIDATAMODEL, and CCopasiMessage::size().

50 {
51  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
52  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING1));
53  CModel* pModel = pDataModel->getModel();
54  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
55  CPPUNIT_ASSERT(pModel != NULL);
56  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::nm2);
57  // make sure there is no warning about inconsistent units
58  unsigned int i = 0, iMax = CCopasiMessage::size();
59 
60  while (i < iMax)
61  {
63  // make sure there is no message about units not being consistent
64  CPPUNIT_ASSERT(message.getNumber() != MCSBML + 24);
65  // make sure all units were imported
66  CPPUNIT_ASSERT(message.getNumber() != MCSBML + 55);
67  CPPUNIT_ASSERT(message.getNumber() != MCSBML + 66);
68  CPPUNIT_ASSERT(message.getNumber() != MCSBML + 79);
69  ++i;
70  }
71 }
static const char * MODEL_STRING1
Definition: test000084.h:58
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_10 ( )

Definition at line 464 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING10, pCOPASIDATAMODEL, and CCopasiMessage::size().

465 {
466  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
467  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING10));
468  CModel* pModel = pDataModel->getModel();
469  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
470  CPPUNIT_ASSERT(pModel != NULL);
471  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
472  // make sure there is no warning about inconsistent units
473  unsigned int i = 0, iMax = CCopasiMessage::size();
474  unsigned int found24 = 0;
475  unsigned int found55 = 0;
476  unsigned int found66 = 0;
477  unsigned int found79 = 0;
478 
479  while (i < iMax)
480  {
482 
483  // check for messages about inconsistent units
484  if (message.getNumber() == MCSBML + 24)
485  {
486  ++found24;
487  }
488 
489  // check for import errors
490  if (message.getNumber() == MCSBML + 55)
491  {
492  ++found55;
493  }
494 
495  // check for import errors
496  if (message.getNumber() == MCSBML + 66)
497  {
498  ++found66;
499  }
500 
501  // check for import errors
502  if (message.getNumber() == MCSBML + 79)
503  {
504  ++found79;
505  }
506 
507  ++i;
508  }
509 
510  CPPUNIT_ASSERT(found55 == 0);
511  CPPUNIT_ASSERT(found24 == 0);
512  CPPUNIT_ASSERT(found79 == 0);
513  CPPUNIT_ASSERT(found66 == 0);
514 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
static const char * MODEL_STRING10
Definition: test000084.h:83
void test000084::test_import_compartment_units_11 ( )

Definition at line 516 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING11, pCOPASIDATAMODEL, and CCopasiMessage::size().

517 {
518  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
519  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING11));
520  CModel* pModel = pDataModel->getModel();
521  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
522  CPPUNIT_ASSERT(pModel != NULL);
523  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
524  // make sure there is no warning about inconsistent units
525  unsigned int i = 0, iMax = CCopasiMessage::size();
526  unsigned int found24 = 0;
527  unsigned int found55 = 0;
528  unsigned int found79 = 0;
529  unsigned int found66 = 0;
530 
531  while (i < iMax)
532  {
534 
535  // check for messages about inconsistent units
536  if (message.getNumber() == MCSBML + 24)
537  {
538  ++found24;
539  }
540 
541  // check for import errors
542  if (message.getNumber() == MCSBML + 55)
543  {
544  ++found55;
545  }
546 
547  // check for import errors
548  if (message.getNumber() == MCSBML + 79)
549  {
550  ++found79;
551  }
552 
553  // check for import errors
554  if (message.getNumber() == MCSBML + 66)
555  {
556  ++found66;
557  }
558 
559  ++i;
560  }
561 
562  CPPUNIT_ASSERT(found55 == 0);
563  CPPUNIT_ASSERT(found24 == 0);
564  CPPUNIT_ASSERT(found79 == 1);
565  CPPUNIT_ASSERT(found66 == 0);
566 }
const size_t & getNumber() const
static const char * MODEL_STRING11
Definition: test000084.h:86
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_12 ( )

Definition at line 568 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING12, pCOPASIDATAMODEL, and CCopasiMessage::size().

569 {
570  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
571  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING12));
572  CModel* pModel = pDataModel->getModel();
573  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
574  CPPUNIT_ASSERT(pModel != NULL);
575  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
576  // make sure there is no warning about inconsistent units
577  unsigned int i = 0, iMax = CCopasiMessage::size();
578  unsigned int found24 = 0;
579  unsigned int found55 = 0;
580  unsigned int found79 = 0;
581  unsigned int found66 = 0;
582 
583  while (i < iMax)
584  {
586 
587  // check for messages about inconsistent units
588  if (message.getNumber() == MCSBML + 24)
589  {
590  ++found24;
591  }
592 
593  // check for import errors
594  if (message.getNumber() == MCSBML + 55)
595  {
596  ++found55;
597  }
598 
599  // check for import errors
600  if (message.getNumber() == MCSBML + 79)
601  {
602  ++found79;
603  }
604 
605  // check for import errors
606  if (message.getNumber() == MCSBML + 66)
607  {
608  ++found66;
609  }
610 
611  ++i;
612  }
613 
614  CPPUNIT_ASSERT(found55 == 0);
615  CPPUNIT_ASSERT(found24 == 0);
616  CPPUNIT_ASSERT(found79 == 1);
617  CPPUNIT_ASSERT(found66 == 0);
618 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static const char * MODEL_STRING12
Definition: test000084.h:89
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_13 ( )

Definition at line 620 of file test000084.cpp.

References CModel::dimensionlessArea, CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), MCSBML, MODEL_STRING13, pCOPASIDATAMODEL, and CCopasiMessage::size().

621 {
622  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
623  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING13));
624  CModel* pModel = pDataModel->getModel();
625  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
626  CPPUNIT_ASSERT(pModel != NULL);
627  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::dimensionlessArea);
628  // make sure there is no warning about inconsistent units
629  unsigned int i = 0, iMax = CCopasiMessage::size();
630 
631  while (i < iMax)
632  {
634  // make sure there is no message about units not being consistent
635  CPPUNIT_ASSERT(message.getNumber() != MCSBML + 24);
636  // make sure all units were imported
637  CPPUNIT_ASSERT(message.getNumber() != MCSBML + 55);
638  CPPUNIT_ASSERT(message.getNumber() != MCSBML + 66);
639  CPPUNIT_ASSERT(message.getNumber() != MCSBML + 79);
640  ++i;
641  }
642 }
const size_t & getNumber() const
static const char * MODEL_STRING13
Definition: test000084.h:92
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_14 ( )

Definition at line 644 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING14, pCOPASIDATAMODEL, and CCopasiMessage::size().

645 {
646  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
647  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING14));
648  CModel* pModel = pDataModel->getModel();
649  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
650  CPPUNIT_ASSERT(pModel != NULL);
651  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
652  // make sure there is no warning about inconsistent units
653  unsigned int i = 0, iMax = CCopasiMessage::size();
654  unsigned int found24 = 0;
655  unsigned int found55 = 0;
656  unsigned int found79 = 0;
657  unsigned int found66 = 0;
658 
659  while (i < iMax)
660  {
662 
663  // check for messages about inconsistent units
664  if (message.getNumber() == MCSBML + 24)
665  {
666  ++found24;
667  }
668 
669  // check for import errors
670  if (message.getNumber() == MCSBML + 55)
671  {
672  ++found55;
673  }
674 
675  // check for import errors
676  if (message.getNumber() == MCSBML + 79)
677  {
678  ++found79;
679  }
680 
681  // check for import errors
682  if (message.getNumber() == MCSBML + 66)
683  {
684  ++found66;
685  }
686 
687  ++i;
688  }
689 
690  CPPUNIT_ASSERT(found55 == 0);
691  CPPUNIT_ASSERT(found24 == 0);
692  CPPUNIT_ASSERT(found79 == 1);
693  CPPUNIT_ASSERT(found66 == 0);
694 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
static const char * MODEL_STRING14
Definition: test000084.h:95
void test000084::test_import_compartment_units_15 ( )

Definition at line 696 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING15, pCOPASIDATAMODEL, and CCopasiMessage::size().

697 {
698  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
699  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING15));
700  CModel* pModel = pDataModel->getModel();
701  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
702  CPPUNIT_ASSERT(pModel != NULL);
703  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
704  // make sure there is no warning about inconsistent units
705  unsigned int i = 0, iMax = CCopasiMessage::size();
706  unsigned int found24 = 0;
707  unsigned int found55 = 0;
708  unsigned int found79 = 0;
709  unsigned int found66 = 0;
710 
711  while (i < iMax)
712  {
714 
715  // check for messages about inconsistent units
716  if (message.getNumber() == MCSBML + 24)
717  {
718  ++found24;
719  }
720 
721  // check for import errors
722  if (message.getNumber() == MCSBML + 55)
723  {
724  ++found55;
725  }
726 
727  // check for import errors
728  if (message.getNumber() == MCSBML + 79)
729  {
730  ++found79;
731  }
732 
733  // check for import errors
734  if (message.getNumber() == MCSBML + 66)
735  {
736  ++found66;
737  }
738 
739  ++i;
740  }
741 
742  CPPUNIT_ASSERT(found55 == 0);
743  CPPUNIT_ASSERT(found24 == 0);
744  CPPUNIT_ASSERT(found79 == 1);
745  CPPUNIT_ASSERT(found66 == 0);
746 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static const char * MODEL_STRING15
Definition: test000084.h:98
Definition: CModel.h:50
void test000084::test_import_compartment_units_16 ( )

Definition at line 748 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING16, pCOPASIDATAMODEL, and CCopasiMessage::size().

749 {
750  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
751  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING16));
752  CModel* pModel = pDataModel->getModel();
753  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
754  CPPUNIT_ASSERT(pModel != NULL);
755  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
756  // make sure there is no warning about inconsistent units
757  unsigned int i = 0, iMax = CCopasiMessage::size();
758  unsigned int found24 = 0;
759  unsigned int found55 = 0;
760  unsigned int found79 = 0;
761  unsigned int found66 = 0;
762 
763  while (i < iMax)
764  {
766 
767  // check for messages about inconsistent units
768  if (message.getNumber() == MCSBML + 24)
769  {
770  ++found24;
771  }
772 
773  // check for import errors
774  if (message.getNumber() == MCSBML + 55)
775  {
776  ++found55;
777  }
778 
779  // check for import errors
780  if (message.getNumber() == MCSBML + 79)
781  {
782  ++found79;
783  }
784 
785  // check for import errors
786  if (message.getNumber() == MCSBML + 66)
787  {
788  ++found66;
789  }
790 
791  ++i;
792  }
793 
794  CPPUNIT_ASSERT(found55 == 0);
795  CPPUNIT_ASSERT(found24 == 0);
796  CPPUNIT_ASSERT(found79 == 1);
797  CPPUNIT_ASSERT(found66 == 0);
798 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
static const char * MODEL_STRING16
Definition: test000084.h:101
void test000084::test_import_compartment_units_17 ( )

Definition at line 800 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING17, pCOPASIDATAMODEL, and CCopasiMessage::size().

801 {
802  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
803  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING17));
804  CModel* pModel = pDataModel->getModel();
805  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
806  CPPUNIT_ASSERT(pModel != NULL);
807  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
808  // make sure there is no warning about inconsistent units
809  unsigned int i = 0, iMax = CCopasiMessage::size();
810  unsigned int found24 = 0;
811  unsigned int found55 = 0;
812  unsigned int found79 = 0;
813  unsigned int found66 = 0;
814 
815  while (i < iMax)
816  {
818 
819  // check for messages about inconsistent units
820  if (message.getNumber() == MCSBML + 24)
821  {
822  ++found24;
823  }
824 
825  // check for import errors
826  if (message.getNumber() == MCSBML + 55)
827  {
828  ++found55;
829  }
830 
831  // check for import errors
832  if (message.getNumber() == MCSBML + 79)
833  {
834  ++found79;
835  }
836 
837  // check for import errors
838  if (message.getNumber() == MCSBML + 66)
839  {
840  ++found66;
841  }
842 
843  ++i;
844  }
845 
846  CPPUNIT_ASSERT(found55 == 0);
847  CPPUNIT_ASSERT(found24 == 0);
848  CPPUNIT_ASSERT(found79 == 1);
849  CPPUNIT_ASSERT(found66 == 0);
850 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static const char * MODEL_STRING17
Definition: test000084.h:104
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_18 ( )

Definition at line 852 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING18, pCOPASIDATAMODEL, and CCopasiMessage::size().

853 {
854  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
855  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING18));
856  CModel* pModel = pDataModel->getModel();
857  CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
858  CPPUNIT_ASSERT(pModel != NULL);
859  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
860  // make sure there is no warning about inconsistent units
861  unsigned int i = 0, iMax = CCopasiMessage::size();
862  unsigned int found24 = 0;
863  unsigned int found55 = 0;
864  unsigned int found66 = 0;
865  unsigned int found79 = 0;
866 
867  while (i < iMax)
868  {
870 
871  // check for messages about inconsistent units
872  if (message.getNumber() == MCSBML + 24)
873  {
874  ++found24;
875  }
876 
877  // check for import errors
878  if (message.getNumber() == MCSBML + 55)
879  {
880  ++found55;
881  }
882 
883  // check for import errors
884  if (message.getNumber() == MCSBML + 66)
885  {
886  ++found66;
887  }
888 
889  // check for import errors
890  if (message.getNumber() == MCSBML + 79)
891  {
892  ++found79;
893  }
894 
895  ++i;
896  }
897 
898  CPPUNIT_ASSERT(found55 == 0);
899  CPPUNIT_ASSERT(found24 == 0);
900  CPPUNIT_ASSERT(found79 == 0);
901  CPPUNIT_ASSERT(found66 == 0);
902 }
static const char * MODEL_STRING18
Definition: test000084.h:107
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_19 ( )

Definition at line 904 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING19, pCOPASIDATAMODEL, and CCopasiMessage::size().

905 {
906  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
907  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING19));
908  CModel* pModel = pDataModel->getModel();
909  CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
910  CPPUNIT_ASSERT(pModel != NULL);
911  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
912  // make sure there is no warning about inconsistent units
913  unsigned int i = 0, iMax = CCopasiMessage::size();
914  unsigned int found24 = 0;
915  unsigned int found55 = 0;
916  unsigned int found66 = 0;
917  unsigned int found79 = 0;
918 
919  while (i < iMax)
920  {
922 
923  // check for messages about inconsistent units
924  if (message.getNumber() == MCSBML + 24)
925  {
926  ++found24;
927  }
928 
929  // check for import errors
930  if (message.getNumber() == MCSBML + 55)
931  {
932  ++found55;
933  }
934 
935  // check for import errors
936  if (message.getNumber() == MCSBML + 66)
937  {
938  ++found66;
939  }
940 
941  // check for import errors
942  if (message.getNumber() == MCSBML + 79)
943  {
944  ++found79;
945  }
946 
947  ++i;
948  }
949 
950  CPPUNIT_ASSERT(found55 == 0);
951  CPPUNIT_ASSERT(found24 == 0);
952  CPPUNIT_ASSERT(found79 == 0);
953  CPPUNIT_ASSERT(found66 == 0);
954 }
static const char * MODEL_STRING19
Definition: test000084.h:110
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_2 ( )

Definition at line 73 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING2, pCOPASIDATAMODEL, and CCopasiMessage::size().

74 {
75  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
76  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING2));
77  CModel* pModel = pDataModel->getModel();
78  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
79  CPPUNIT_ASSERT(pModel != NULL);
80  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
81  unsigned int i = 0, iMax = CCopasiMessage::size();
82 
83  while (i < iMax)
84  {
86 
87  // make sure there is a message about the unit not being recognized by
88  // COPASI since the scale is off
89  if (message.getNumber() == MCSBML + 66)
90  {
91  break;
92  }
93 
94  ++i;
95  }
96 
97  CPPUNIT_ASSERT(i != iMax);
98 }
const size_t & getNumber() const
static const char * MODEL_STRING2
Definition: test000084.h:60
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_20 ( )

Definition at line 956 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING20, pCOPASIDATAMODEL, and CCopasiMessage::size().

957 {
958  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
959  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING20));
960  CModel* pModel = pDataModel->getModel();
961  CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
962  CPPUNIT_ASSERT(pModel != NULL);
963  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
964  // make sure there is no warning about inconsistent units
965  unsigned int i = 0, iMax = CCopasiMessage::size();
966  unsigned int found24 = 0;
967  unsigned int found55 = 0;
968  unsigned int found66 = 0;
969  unsigned int found79 = 0;
970 
971  while (i < iMax)
972  {
974 
975  // check for messages about inconsistent units
976  if (message.getNumber() == MCSBML + 24)
977  {
978  ++found24;
979  }
980 
981  // check for import errors
982  if (message.getNumber() == MCSBML + 55)
983  {
984  ++found55;
985  }
986 
987  // check for import errors
988  if (message.getNumber() == MCSBML + 66)
989  {
990  ++found66;
991  }
992 
993  // check for import errors
994  if (message.getNumber() == MCSBML + 79)
995  {
996  ++found79;
997  }
998 
999  ++i;
1000  }
1001 
1002  CPPUNIT_ASSERT(found55 == 0);
1003  CPPUNIT_ASSERT(found24 == 1);
1004  CPPUNIT_ASSERT(found79 == 0);
1005  CPPUNIT_ASSERT(found66 == 0);
1006 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static const char * MODEL_STRING20
Definition: test000084.h:113
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_21 ( )

Definition at line 1008 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING21, pCOPASIDATAMODEL, and CCopasiMessage::size().

1009 {
1010  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
1011  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING21));
1012  CModel* pModel = pDataModel->getModel();
1013  CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
1014  CPPUNIT_ASSERT(pModel != NULL);
1015  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
1016  // make sure there is no warning about inconsistent units
1017  unsigned int i = 0, iMax = CCopasiMessage::size();
1018  unsigned int found24 = 0;
1019  unsigned int found55 = 0;
1020  unsigned int found66 = 0;
1021  unsigned int found79 = 0;
1022 
1023  while (i < iMax)
1024  {
1026 
1027  // check for messages about inconsistent units
1028  if (message.getNumber() == MCSBML + 24)
1029  {
1030  ++found24;
1031  }
1032 
1033  // check for import errors
1034  if (message.getNumber() == MCSBML + 55)
1035  {
1036  ++found55;
1037  }
1038 
1039  // check for import errors
1040  if (message.getNumber() == MCSBML + 66)
1041  {
1042  ++found66;
1043  }
1044 
1045  // check for import errors
1046  if (message.getNumber() == MCSBML + 79)
1047  {
1048  ++found79;
1049  }
1050 
1051  ++i;
1052  }
1053 
1054  CPPUNIT_ASSERT(found55 == 0);
1055  CPPUNIT_ASSERT(found24 == 1);
1056  CPPUNIT_ASSERT(found79 == 0);
1057  CPPUNIT_ASSERT(found66 == 0);
1058 }
const size_t & getNumber() const
static const char * MODEL_STRING21
Definition: test000084.h:116
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_3 ( )

Definition at line 100 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING3, pCOPASIDATAMODEL, and CCopasiMessage::size().

101 {
102  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
103  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING3));
104  CModel* pModel = pDataModel->getModel();
105  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
106  CPPUNIT_ASSERT(pModel != NULL);
107  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
108  // make sure there is no warning about inconsistent units
109  unsigned int i = 0, iMax = CCopasiMessage::size();
110  unsigned int found24 = 0;
111  unsigned int found55 = 0;
112  unsigned int found79 = 0;
113  unsigned int found66 = 0;
114 
115  while (i < iMax)
116  {
118 
119  // check for messages about inconsistent units
120  if (message.getNumber() == MCSBML + 24)
121  {
122  ++found24;
123  }
124 
125  // check for import errors
126  if (message.getNumber() == MCSBML + 55)
127  {
128  ++found55;
129  }
130 
131  // check for import errors
132  if (message.getNumber() == MCSBML + 79)
133  {
134  ++found79;
135  }
136 
137  // check for import errors
138  if (message.getNumber() == MCSBML + 66)
139  {
140  ++found66;
141  }
142 
143  ++i;
144  }
145 
146  CPPUNIT_ASSERT(found55 == 0);
147  CPPUNIT_ASSERT(found24 == 0);
148  CPPUNIT_ASSERT(found79 == 0);
149  CPPUNIT_ASSERT(found66 == 1);
150 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
static const char * MODEL_STRING3
Definition: test000084.h:62
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_4 ( )

Definition at line 152 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), MCSBML, CModel::mm2, MODEL_STRING4, pCOPASIDATAMODEL, and CCopasiMessage::size().

153 {
154  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
155  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING4));
156  CModel* pModel = pDataModel->getModel();
157  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
158  CPPUNIT_ASSERT(pModel != NULL);
159  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::mm2);
160  // make sure there is no warning about inconsistent units
161  unsigned int i = 0, iMax = CCopasiMessage::size();
162  unsigned int found24 = 0;
163  unsigned int found55 = 0;
164  unsigned int found79 = 0;
165  unsigned int found66 = 0;
166 
167  while (i < iMax)
168  {
170 
171  // check for messages about inconsistent units
172  if (message.getNumber() == MCSBML + 24)
173  {
174  ++found24;
175  }
176 
177  // check for import errors
178  if (message.getNumber() == MCSBML + 55)
179  {
180  ++found55;
181  }
182 
183  // check for import errors
184  if (message.getNumber() == MCSBML + 79)
185  {
186  ++found79;
187  }
188 
189  // check for import errors
190  if (message.getNumber() == MCSBML + 66)
191  {
192  ++found66;
193  }
194 
195  ++i;
196  }
197 
198  CPPUNIT_ASSERT(found55 == 0);
199  CPPUNIT_ASSERT(found24 == 0);
200  CPPUNIT_ASSERT(found79 == 0);
201  CPPUNIT_ASSERT(found66 == 0);
202 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
static const char * MODEL_STRING4
Definition: test000084.h:65
void test000084::test_import_compartment_units_5 ( )

Definition at line 204 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), MCSBML, MODEL_STRING5, CModel::nm2, pCOPASIDATAMODEL, and CCopasiMessage::size().

205 {
206  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
207  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING5));
208  CModel* pModel = pDataModel->getModel();
209  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
210  CPPUNIT_ASSERT(pModel != NULL);
211  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::nm2);
212  // make sure there is no warning about inconsistent units
213  unsigned int i = 0, iMax = CCopasiMessage::size();
214  unsigned int found24 = 0;
215  unsigned int found55 = 0;
216  unsigned int found79 = 0;
217  unsigned int found66 = 0;
218 
219  while (i < iMax)
220  {
222 
223  // check for messages about inconsistent units
224  if (message.getNumber() == MCSBML + 24)
225  {
226  ++found24;
227  }
228 
229  // check for import errors
230  if (message.getNumber() == MCSBML + 55)
231  {
232  ++found55;
233  }
234 
235  // check for import errors
236  if (message.getNumber() == MCSBML + 79)
237  {
238  ++found79;
239  }
240 
241  // check for import errors
242  if (message.getNumber() == MCSBML + 66)
243  {
244  ++found66;
245  }
246 
247  ++i;
248  }
249 
250  CPPUNIT_ASSERT(found55 == 0);
251  CPPUNIT_ASSERT(found24 == 0);
252  CPPUNIT_ASSERT(found79 == 1);
253  CPPUNIT_ASSERT(found66 == 0);
254 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static const char * MODEL_STRING5
Definition: test000084.h:68
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_6 ( )

Definition at line 256 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), MCSBML, MODEL_STRING6, CModel::nm2, pCOPASIDATAMODEL, and CCopasiMessage::size().

257 {
258  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
259  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING6));
260  CModel* pModel = pDataModel->getModel();
261  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
262  CPPUNIT_ASSERT(pModel != NULL);
263  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::nm2);
264  // make sure there is no warning about inconsistent units
265  unsigned int i = 0, iMax = CCopasiMessage::size();
266  unsigned int found24 = 0;
267  unsigned int found55 = 0;
268  unsigned int found79 = 0;
269  unsigned int found66 = 0;
270 
271  while (i < iMax)
272  {
274 
275  // check for messages about inconsistent units
276  if (message.getNumber() == MCSBML + 24)
277  {
278  ++found24;
279  }
280 
281  // check for import errors
282  if (message.getNumber() == MCSBML + 55)
283  {
284  ++found55;
285  }
286 
287  // check for import errors
288  if (message.getNumber() == MCSBML + 79)
289  {
290  ++found79;
291  }
292 
293  // check for import errors
294  if (message.getNumber() == MCSBML + 66)
295  {
296  ++found66;
297  }
298 
299  ++i;
300  }
301 
302  CPPUNIT_ASSERT(found55 == 0);
303  CPPUNIT_ASSERT(found24 == 0);
304  CPPUNIT_ASSERT(found79 == 0);
305  CPPUNIT_ASSERT(found66 == 1);
306 }
static const char * MODEL_STRING6
Definition: test000084.h:71
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_7 ( )

Definition at line 308 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), MCSBML, MODEL_STRING7, CModel::nm2, pCOPASIDATAMODEL, and CCopasiMessage::size().

309 {
310  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
311  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING7));
312  CModel* pModel = pDataModel->getModel();
313  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
314  CPPUNIT_ASSERT(pModel != NULL);
315  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::nm2);
316  // make sure there is no warning about inconsistent units
317  unsigned int i = 0, iMax = CCopasiMessage::size();
318  unsigned int found24 = 0;
319  unsigned int found55 = 0;
320  unsigned int found66 = 0;
321  unsigned int found79 = 0;
322 
323  while (i < iMax)
324  {
326 
327  // check for messages about inconsistent units
328  if (message.getNumber() == MCSBML + 24)
329  {
330  ++found24;
331  }
332 
333  // check for import errors
334  if (message.getNumber() == MCSBML + 55)
335  {
336  ++found55;
337  }
338 
339  // check for import errors
340  if (message.getNumber() == MCSBML + 66)
341  {
342  ++found66;
343  }
344 
345  // check for import errors
346  if (message.getNumber() == MCSBML + 79)
347  {
348  ++found79;
349  }
350 
351  ++i;
352  }
353 
354  CPPUNIT_ASSERT(found55 == 0);
355  CPPUNIT_ASSERT(found24 == 0);
356  CPPUNIT_ASSERT(found79 == 0);
357  CPPUNIT_ASSERT(found66 == 0);
358 }
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
static const char * MODEL_STRING7
Definition: test000084.h:74
void test000084::test_import_compartment_units_8 ( )

Definition at line 360 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING8, pCOPASIDATAMODEL, and CCopasiMessage::size().

361 {
362  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
363  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING8));
364  CModel* pModel = pDataModel->getModel();
365  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
366  CPPUNIT_ASSERT(pModel != NULL);
367  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
368  // make sure there is no warning about inconsistent units
369  unsigned int i = 0, iMax = CCopasiMessage::size();
370  unsigned int found24 = 0;
371  unsigned int found55 = 0;
372  unsigned int found66 = 0;
373  unsigned int found79 = 0;
374 
375  while (i < iMax)
376  {
378 
379  // check for messages about inconsistent units
380  if (message.getNumber() == MCSBML + 24)
381  {
382  ++found24;
383  }
384 
385  // check for import errors
386  if (message.getNumber() == MCSBML + 55)
387  {
388  ++found55;
389  }
390 
391  // check for import errors
392  if (message.getNumber() == MCSBML + 66)
393  {
394  ++found66;
395  }
396 
397  // check for import errors
398  if (message.getNumber() == MCSBML + 79)
399  {
400  ++found79;
401  }
402 
403  ++i;
404  }
405 
406  CPPUNIT_ASSERT(found55 == 0);
407  CPPUNIT_ASSERT(found24 == 0);
408  CPPUNIT_ASSERT(found79 == 0);
409  CPPUNIT_ASSERT(found66 == 0);
410 }
static const char * MODEL_STRING8
Definition: test000084.h:77
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50
void test000084::test_import_compartment_units_9 ( )

Definition at line 412 of file test000084.cpp.

References CCopasiMessage::getLastMessage(), CCopasiDataModel::getModel(), CCopasiMessage::getNumber(), CCopasiDataModel::importSBMLFromString(), CModel::m2, MCSBML, MODEL_STRING9, pCOPASIDATAMODEL, and CCopasiMessage::size().

413 {
414  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
415  CPPUNIT_ASSERT(pDataModel->importSBMLFromString(MODEL_STRING9));
416  CModel* pModel = pDataModel->getModel();
417  CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
418  CPPUNIT_ASSERT(pModel != NULL);
419  CPPUNIT_ASSERT(pModel->getAreaUnitEnum() == CModel::m2);
420  // make sure there is no warning about inconsistent units
421  unsigned int i = 0, iMax = CCopasiMessage::size();
422  unsigned int found24 = 0;
423  unsigned int found55 = 0;
424  unsigned int found79 = 0;
425  unsigned int found66 = 0;
426 
427  while (i < iMax)
428  {
430 
431  // check for messages about inconsistent units
432  if (message.getNumber() == MCSBML + 24)
433  {
434  ++found24;
435  }
436 
437  // check for import errors
438  if (message.getNumber() == MCSBML + 55)
439  {
440  ++found55;
441  }
442 
443  // check for import errors
444  if (message.getNumber() == MCSBML + 79)
445  {
446  ++found79;
447  }
448 
449  // check for import errors
450  if (message.getNumber() == MCSBML + 66)
451  {
452  ++found66;
453  }
454 
455  ++i;
456  }
457 
458  CPPUNIT_ASSERT(found55 == 0);
459  CPPUNIT_ASSERT(found24 == 0);
460  CPPUNIT_ASSERT(found79 == 1);
461  CPPUNIT_ASSERT(found66 == 0);
462 }
static const char * MODEL_STRING9
Definition: test000084.h:80
const size_t & getNumber() const
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000084.h:118
#define MCSBML
static size_t size()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
Definition: CModel.h:50

Member Data Documentation

const char * test000084::MODEL_STRING1
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with global area unit nm^2.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-9\" exponent=\"2\" />"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 58 of file test000084.h.

Referenced by test_import_compartment_units_1().

const char * test000084::MODEL_STRING10
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a compartment with no units.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 83 of file test000084.h.

Referenced by test_import_compartment_units_10().

const char * test000084::MODEL_STRING11
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a 2D compartment with volume units.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"volume\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 86 of file test000084.h.

Referenced by test_import_compartment_units_11().

const char * test000084::MODEL_STRING12
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a 2D compartment with length units.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"length\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 89 of file test000084.h.

Referenced by test_import_compartment_units_12().

const char * test000084::MODEL_STRING13
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a 2D compartment with dimensionmess units.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"dimensionless\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 92 of file test000084.h.

Referenced by test_import_compartment_units_13().

const char * test000084::MODEL_STRING14
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a 2D compartment with m^3 units.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"0\" exponent=\"3\" />"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 95 of file test000084.h.

Referenced by test_import_compartment_units_14().

const char * test000084::MODEL_STRING15
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a 2D compartment with m units.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"0\" />"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 98 of file test000084.h.

Referenced by test_import_compartment_units_15().

const char * test000084::MODEL_STRING16
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a 2D compartment with mole units.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"mole\" scale=\"0\" />"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 101 of file test000084.h.

Referenced by test_import_compartment_units_16().

const char * test000084::MODEL_STRING17
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a 2D compartment with substance units.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"substance\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 104 of file test000084.h.

Referenced by test_import_compartment_units_17().

const char * test000084::MODEL_STRING18
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and two compartments. One has no unit, the other uses area as the unit.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
" <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" spatialDimensions=\"2\" units=\"area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 107 of file test000084.h.

Referenced by test_import_compartment_units_18().

const char * test000084::MODEL_STRING19
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and two compartments. One has no unit, the other uses metre^2 as the unit.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
" <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" spatialDimensions=\"2\" units=\"area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 110 of file test000084.h.

Referenced by test_import_compartment_units_19().

const char * test000084::MODEL_STRING2
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with global area unit 10e-4* m^2 .</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-4\" exponent=\"2\"/>"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 60 of file test000084.h.

Referenced by test_import_compartment_units_2().

const char * test000084::MODEL_STRING20
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and two compartments. One has no unit, the other uses nm^2 as the unit.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-9\" exponent=\"2\" />"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
" <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 113 of file test000084.h.

Referenced by test_import_compartment_units_20().

const char * test000084::MODEL_STRING21
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and two compartments. One has nm^2 as the unit, the other one has no unit.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-9\" exponent=\"2\" />"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" spatialDimensions=\"2\" />"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 116 of file test000084.h.

Referenced by test_import_compartment_units_21().

const char * test000084::MODEL_STRING3
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with global area unit mole.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"area\">"
" <listOfUnits>"
" <unit kind=\"mole\" scale=\"0\"/>"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 62 of file test000084.h.

Referenced by test_import_compartment_units_3().

const char * test000084::MODEL_STRING4
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with global area unit nm^2</p>"
" <p> and a compartment with mm^2 units</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-9\" exponent=\"2\"/>"
" </listOfUnits>"
" </unitDefinition>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-3\" exponent=\"2\"/>"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 65 of file test000084.h.

Referenced by test_import_compartment_units_4().

const char * test000084::MODEL_STRING5
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with global area unit nm^2</p>"
" <p>and a compartment with mole units.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-9\" exponent=\"2\"/>"
" </listOfUnits>"
" </unitDefinition>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"mole\" scale=\"0\"/>"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 68 of file test000084.h.

Referenced by test_import_compartment_units_5().

const char * test000084::MODEL_STRING6
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with global area unit mole</p>"
" <p>and a compartment with nm^2 units.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-9\" exponent=\"2\"/>"
" </listOfUnits>"
" </unitDefinition>"
" <unitDefinition id=\"area\">"
" <listOfUnits>"
" <unit kind=\"mole\" scale=\"0\"/>"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 71 of file test000084.h.

Referenced by test_import_compartment_units_6().

const char * test000084::MODEL_STRING7
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a compartment with nm^2 units.</p>"
" </body>"
" </notes>"
" <listOfUnitDefinitions>"
" <unitDefinition id=\"my_area\">"
" <listOfUnits>"
" <unit kind=\"metre\" scale=\"-9\" exponent=\"2\"/>"
" </listOfUnits>"
" </unitDefinition>"
" </listOfUnitDefinitions>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 74 of file test000084.h.

Referenced by test_import_compartment_units_7().

const char * test000084::MODEL_STRING8
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a compartment with area units.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"area\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 77 of file test000084.h.

Referenced by test_import_compartment_units_8().

const char * test000084::MODEL_STRING9
staticprotected
Initial value:
=
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
" <model id=\"Model_1\" name=\"New Model\">"
" <notes>"
" <body xmlns=\"http://www.w3.org/1999/xhtml\">"
" <p>L2V1 model with no global area unit</p>"
" <p>and a compartment with metre units.</p>"
" </body>"
" </notes>"
" <listOfCompartments>"
" <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"metre\"/>"
" </listOfCompartments>"
" </model>"
"</sbml>"

Definition at line 80 of file test000084.h.

Referenced by test_import_compartment_units_9().

CCopasiDataModel * test000084::pCOPASIDATAMODEL = NULL
staticprotected

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