コード例 #1
0
 public void test_L3Trigger_setInitialValue() {
   int i = T.setInitialValue(false);
   assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
   assertTrue(T.getInitialValue() == false);
   assertTrue(T.isSetInitialValue() == true);
   i = T.setInitialValue(true);
   assertTrue(i == libsbml.LIBSBML_OPERATION_SUCCESS);
   assertTrue(T.getInitialValue() == true);
   assertTrue(T.isSetInitialValue() == true);
 }
コード例 #2
0
 public void test_L3Trigger_setInitialValue1() {
   Trigger t = new Trigger(2, 4);
   int i = t.setInitialValue(false);
   assertTrue(i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE);
   assertTrue(T.getInitialValue() == true);
   assertTrue(T.isSetInitialValue() == false);
   t = null;
 }