Пример #1
0
 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);
 }
Пример #2
0
 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;
 }
Пример #3
0
 public void test_L3Trigger_create() {
   assertTrue(T.getTypeCode() == libsbml.SBML_TRIGGER);
   assertTrue(T.getMetaId().equals("") == true);
   assertTrue(T.getNotes() == null);
   assertTrue(T.getAnnotation() == null);
   assertTrue(T.getMath() == null);
   assertTrue(T.getInitialValue() == true);
   assertTrue(T.getPersistent() == true);
   assertTrue(T.isSetInitialValue() == false);
   assertTrue(T.isSetPersistent() == false);
 }