public void test_L3_Event_hasRequiredAttributes() { Event e = new Event(3,1); assertEquals( true, e.hasRequiredAttributes() ); Delay d = e.createDelay(); assertEquals( false, e.hasRequiredAttributes() ); e.setUseValuesFromTriggerTime(true); assertEquals( true, e.hasRequiredAttributes() ); e = null; }
public void test_Delay_ancestor_create() { Event e = new Event(2,4); Delay ea = e.createDelay(); assertTrue( ea.getAncestorOfType(libsbml.SBML_EVENT) == e ); assertTrue( ea.getAncestorOfType(libsbml.SBML_DOCUMENT) == null ); assertTrue( ea.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null ); Delay obj = e.getDelay(); assertTrue( obj.getAncestorOfType(libsbml.SBML_EVENT) == e ); assertTrue( obj.getAncestorOfType(libsbml.SBML_DOCUMENT) == null ); assertTrue( obj.getAncestorOfType(libsbml.SBML_COMPARTMENT) == null ); }