public void test_internal_consistency_check_99904() { SBMLDocument d = new SBMLDocument(2,4); long errors; Compartment c = new Compartment(2,4); d.setLevelAndVersion(1,2,false); Model m = d.createModel(); c.setId("c"); c.setMetaId("mmm"); m.addCompartment(c); errors = d.checkInternalConsistency(); assertTrue( errors == 1 ); assertTrue( d.getError(0).getErrorId() == 10103 ); d = null; }
public void test_SBase_setMetaId1() { SBase c = new Compartment(1,2); int i = c.setMetaId( "cell"); assertTrue( i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE ); assertEquals( false, c.isSetMetaId() ); c = null; }