public void test_ModelHistory_addCreator3() { ModelHistory mh = new ModelHistory(); ModelCreator mc = null; int i = mh.addCreator(mc); assertTrue( i == libsbml.LIBSBML_OPERATION_FAILED ); assertTrue( mh.getNumCreators() == 0 ); mh = null; }
public void test_ModelHistory_addCreator2() { ModelHistory mh = new ModelHistory(); ModelCreator mc = new ModelCreator(); mc.setGivenName( "Sarah"); int i = mh.addCreator(mc); assertTrue( i == libsbml.LIBSBML_INVALID_OBJECT ); assertTrue( mh.getNumCreators() == 0 ); mc = null; mh = null; }
public void test_ModelHistory_addCreator1() { ModelHistory mh = new ModelHistory(); ModelCreator mc = new ModelCreator(); mc.setFamilyName( "Keating"); mc.setGivenName( "Sarah"); int i = mh.addCreator(mc); assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS ); assertTrue( mh.getNumCreators() == 1 ); mc = null; mh = null; }
public void test_ModelHistory_addCreator() { ModelCreator newMC; ModelHistory history = new ModelHistory(); assertTrue( history.getNumCreators() == 0 ); assertTrue( history != null ); ModelCreator mc = new ModelCreator(); assertTrue( mc != null ); mc.setFamilyName( "Keating"); mc.setGivenName( "Sarah"); mc.setEmail( "*****@*****.**"); mc.setOrganisation( "UH"); history.addCreator(mc); assertTrue( history.getNumCreators() == 1 ); mc = null; newMC = history.getListCreators().get(0); assertTrue( newMC != null ); assertTrue(( "Keating" == newMC.getFamilyName() )); assertTrue(( "Sarah" == newMC.getGivenName() )); assertTrue(( "*****@*****.**" == newMC.getEmail() )); assertTrue(( "UH" == newMC.getOrganisation() )); history = null; }