コード例 #1
0
 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());
 }
コード例 #2
0
 public void test_Parameter_createWithNS() {
   XMLNamespaces xmlns = new XMLNamespaces();
   xmlns.add("http://www.sbml.org", "testsbml");
   SBMLNamespaces sbmlns = new SBMLNamespaces(2, 1);
   sbmlns.addNamespaces(xmlns);
   Parameter object = new Parameter(sbmlns);
   assertTrue(object.getTypeCode() == libsbml.SBML_PARAMETER);
   assertTrue(object.getMetaId().equals("") == true);
   assertTrue(object.getNotes() == null);
   assertTrue(object.getAnnotation() == null);
   assertTrue(object.getLevel() == 2);
   assertTrue(object.getVersion() == 1);
   assertTrue(object.getNamespaces() != null);
   assertTrue(object.getNamespaces().getLength() == 2);
   object = null;
 }