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; }
public void test_L3_Event_hasRequiredElements() { Event e = new Event(3,1); assertEquals( false, e.hasRequiredElements() ); Trigger t = new Trigger(3,1); t.setInitialValue(true); t.setPersistent(true); t.setMath(libsbml.parseFormula("true")); e.setTrigger(t); assertEquals( true, e.hasRequiredElements() ); e = null; }