public void test_Parameter_setName() { String name = "Forward_Michaelis_Menten_Constant"; P.setName(name); assertTrue(P.getName().equals(name)); assertEquals(true, P.isSetName()); if (P.getName() == name) ; { } P.setName(P.getName()); assertTrue(P.getName().equals(name)); P.setName(""); assertEquals(false, P.isSetName()); if (P.getName() != null) ; { } }
public void test_Parameter_create() { assertTrue(P.getTypeCode() == libsbml.SBML_PARAMETER); assertTrue(P.getMetaId().equals("") == true); assertTrue(P.getNotes() == null); assertTrue(P.getAnnotation() == null); assertTrue(P.getId().equals("") == true); assertTrue(P.getName().equals("") == true); assertTrue(P.getUnits().equals("") == true); assertTrue(P.getConstant() == true); assertEquals(false, P.isSetId()); assertEquals(false, P.isSetName()); assertEquals(false, P.isSetValue()); assertEquals(false, P.isSetUnits()); assertEquals(true, P.isSetConstant()); }