public void test_Compartment_unsetVolume() { C.setVolume(1.0); assertTrue(C.getVolume() == 1.0); C.unsetVolume(); assertEquals(false, C.isSetVolume()); }
public void test_Compartment_setVolume1() { int i = C.setVolume(2.0); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertTrue(C.getVolume() == 2.0); assertEquals(true, C.isSetVolume()); i = C.unsetVolume(); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertTrue(C.getVolume() == 1.0); assertEquals(true, C.isSetVolume()); }
public void test_Compartment_setVolume2() { Compartment c = new Compartment(2, 2); int i = c.setVolume(4); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertTrue(c.getVolume() == 4.0); assertEquals(true, c.isSetVolume()); i = c.unsetVolume(); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertEquals(false, c.isSetVolume()); c = null; }