setSpatialDimensions() public method

public setSpatialDimensions ( double value ) : int
value double
return int
 public void test_internal_consistency_check_99901()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Compartment c = new Compartment(2,4);
       d.setLevelAndVersion(1,2,false);
       Model m = d.createModel();
       long dim = 2;
       c.setSpatialDimensions(dim);
       c.setId("c");
       m.addCompartment(c);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 1 );
       assertTrue( d.getError(0).getErrorId() == 10103 );
       d = null;
 }
 public void test_Compartment_setSpatialDimensions5()
 {
     Compartment c = new  Compartment(2,2);
       int i = c.setSpatialDimensions(2.2);
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertTrue( c.getSpatialDimensions() == 3 );
       c = null;
 }
 public void test_Compartment_setSpatialDimensions4()
 {
     Compartment c = new  Compartment(2,2);
       int i = c.setSpatialDimensions(2.0);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( c.getSpatialDimensions() == 2 );
       c = null;
 }