getFamilyName() public method

public getFamilyName ( ) : string
return string
 public void test_ModelCreator_setFamilyName()
 {
     ModelCreator mc = new  ModelCreator();
       assertTrue( mc != null );
       int i = mc.setFamilyName( "Keating");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( mc.isSetFamilyName() == true );
       assertTrue((  "Keating" == mc.getFamilyName() ));
       i = mc.setFamilyName( "");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( mc.isSetFamilyName() == false );
       i = mc.setFamilyName( "Keating");
       assertTrue( mc.isSetFamilyName() == true );
       i = mc.unsetFamilyName();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( mc.isSetFamilyName() == false );
       mc = null;
 }
示例#2
0
 public void test_ModelCreator_setters()
 {
     ModelCreator mc = new  ModelCreator();
       assertTrue( mc != null );
       assertTrue( mc.isSetFamilyName() == false );
       assertTrue( mc.isSetGivenName() == false );
       assertTrue( mc.isSetEmail() == false );
       assertTrue( mc.isSetOrganisation() == false );
       mc.setFamilyName( "Keating");
       mc.setGivenName( "Sarah");
       mc.setEmail( "*****@*****.**");
       mc.setOrganisation( "UH");
       assertTrue((  "Keating" == mc.getFamilyName() ));
       assertTrue((  "Sarah" == mc.getGivenName() ));
       assertTrue((  "*****@*****.**" == mc.getEmail() ));
       assertTrue((  "UH" == mc.getOrganisation() ));
       assertTrue( mc.isSetFamilyName() == true );
       assertTrue( mc.isSetGivenName() == true );
       assertTrue( mc.isSetEmail() == true );
       assertTrue( mc.isSetOrganisation() == true );
       mc.unsetFamilyName();
       mc.unsetGivenName();
       mc.unsetEmail();
       mc.unsetOrganisation();
       assertTrue((  "" == mc.getFamilyName() ));
       assertTrue((  "" == mc.getGivenName() ));
       assertTrue((  "" == mc.getEmail() ));
       assertTrue((  "" == mc.getOrganisation() ));
       assertTrue( mc.isSetFamilyName() == false );
       assertTrue( mc.isSetGivenName() == false );
       assertTrue( mc.isSetEmail() == false );
       assertTrue( mc.isSetOrganisation() == false );
       assertTrue( mc.isSetOrganization() == false );
       mc.setOrganization( "UH");
       assertTrue((  "UH" == mc.getOrganization() ));
       assertTrue( mc.isSetOrganization() == true );
       mc.unsetOrganisation();
       assertTrue((  "" == mc.getOrganization() ));
       assertTrue( mc.isSetOrganization() == false );
       mc = null;
 }
示例#3
0
 public void test_ModelCreator_copyConstructor()
 {
     ModelCreator mc = new ModelCreator();
       mc.setFamilyName("Keating");
       mc.setEmail("*****@*****.**");
       assertTrue( mc.getFamilyName() ==  "Keating" );
       assertTrue( mc.getEmail() ==  "*****@*****.**" );
       ModelCreator mc2 = new ModelCreator(mc);
       assertTrue( mc2.getFamilyName() ==  "Keating" );
       assertTrue( mc2.getEmail() ==  "*****@*****.**" );
       mc2 = null;
       mc = null;
 }
示例#4
0
 public void test_ModelCreator_assignmentOperator()
 {
     ModelCreator mc = new ModelCreator();
       mc.setFamilyName("Keating");
       mc.setEmail("*****@*****.**");
       assertTrue( mc.getFamilyName() ==  "Keating" );
       assertTrue( mc.getEmail() ==  "*****@*****.**" );
       ModelCreator mc2 = new ModelCreator();
       mc2 = mc;
       assertTrue( mc2.getFamilyName() ==  "Keating" );
       assertTrue( mc2.getEmail() ==  "*****@*****.**" );
       mc2 = null;
       mc = null;
 }