public void test_L3Trigger_setPersistent() { int i = T.setPersistent(false); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertTrue(T.getPersistent() == false); assertTrue(T.isSetPersistent() == true); i = T.setPersistent(true); assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS); assertTrue(T.getPersistent() == true); assertTrue(T.isSetPersistent() == true); }
public void test_L3Trigger_setPersistent1() { Trigger t = new Trigger(2, 4); int i = t.setPersistent(false); assertTrue(i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE); assertTrue(T.getPersistent() == true); assertTrue(T.isSetPersistent() == false); t = null; }