예제 #1
0
 public void test_Compartment_getsetType()
 {
     C.setCompartmentType("cell");
     assertTrue(("cell" == C.getCompartmentType()));
     assertEquals(true, C.isSetCompartmentType());
     C.unsetCompartmentType();
     assertEquals(false, C.isSetCompartmentType());
 }
예제 #2
0
        public void test_Compartment_setCompartmentType1()
        {
            int i = C.setCompartmentType("cell");

            assertTrue(i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE);
            assertEquals(false, C.isSetCompartmentType());
            i = C.unsetCompartmentType();
            assertTrue(i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE);
            assertEquals(false, C.isSetCompartmentType());
        }
예제 #3
0
        public void test_Compartment_setCompartmentType2()
        {
            Compartment c = new  Compartment(2, 2);
            int         i = c.setCompartmentType("1cell");

            assertTrue(i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE);
            assertEquals(false, c.isSetCompartmentType());
            i = c.unsetCompartmentType();
            assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
            assertEquals(false, c.isSetCompartmentType());
            c = null;
        }
예제 #4
0
        public void test_Compartment_setCompartmentType3()
        {
            Compartment c = new  Compartment(2, 2);
            int         i = c.setCompartmentType("cell");

            assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
            assertEquals(true, c.isSetCompartmentType());
            assertTrue(("cell" == c.getCompartmentType()));
            i = c.unsetCompartmentType();
            assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
            assertEquals(false, c.isSetCompartmentType());
            c = null;
        }