unsetSpeciesType() public method

public unsetSpeciesType ( ) : int
return int
Ejemplo n.º 1
0
 public void test_Species_setSpeciesType3()
 {
     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.unsetSpeciesType();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetSpeciesType() );
       c = null;
 }
Ejemplo n.º 2
0
 public void test_Species_setSpeciesType2()
 {
     Species c = new  Species(2,2);
       int i = c.setSpeciesType( "1cell");
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertEquals( false, c.isSetSpeciesType() );
       i = c.unsetSpeciesType();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetSpeciesType() );
       c = null;
 }