getSpeciesType() public method

public getSpeciesType ( ) : string
return string
 public void test_Species_setSpeciesType4()
 {
     Species c = new  Species(2,2);
       int i = c.setSpeciesType( "cell");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( true, c.isSetSpeciesType() );
       assertTrue((  "cell"  == c.getSpeciesType() ));
       i = c.setSpeciesType("");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetSpeciesType() );
       c = null;
 }
Exemplo n.º 2
0
 public void test_Species_copyConstructor()
 {
     Species o1 = new Species(2,4);
       o1.setId("c");
       o1.setSpeciesType("c1");
       assertTrue( o1.getId() ==  "c" );
       assertEquals(o1.getSpeciesType(), "c1");
       Species o2 = new Species(o1);
       assertTrue( o2.getId() ==  "c" );
       assertEquals(o2.getSpeciesType(), "c1");
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }