Exemple #1
0
 public void test_Compartment_unsetSize()
 {
     C.setSize(0.2);
     assertTrue(C.getSize() == 0.2);
     assertEquals(true, C.isSetSize());
     C.unsetSize();
     assertEquals(false, C.isSetSize());
 }
Exemple #2
0
        public void test_Compartment_setSize1()
        {
            int i = C.setSize(2.0);

            assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
            assertTrue(C.getSize() == 2.0);
            i = C.unsetSize();
            assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
        }
        public void test_L3_Compartment_size()
        {
            double size = 0.2;

            assertEquals(false, C.isSetSize());
            assertEquals(true, isnan(C.getSize()));
            C.setSize(size);
            assertTrue(C.getSize() == size);
            assertEquals(true, C.isSetSize());
            C.unsetSize();
            assertEquals(false, C.isSetSize());
            assertEquals(true, isnan(C.getSize()));
        }
Exemple #4
0
        public void test_Compartment_setSize2()
        {
            Compartment c = new  Compartment(2, 2);
            int         i = c.setSize(4);

            assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
            assertTrue(c.getSize() == 4);
            assertEquals(true, c.isSetSize());
            i = c.unsetSize();
            assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
            assertEquals(false, c.isSetSize());
            c = null;
        }