initDefaults() public méthode

public initDefaults ( ) : void
Résultat void
 public void test_Compartment_initDefaults()
 {
     Compartment c = new  Compartment(2,4);
       c.setId( "A");
       c.initDefaults();
       assertTrue((  "A" == c.getId() ));
       assertTrue( c.getName() == "" );
       assertTrue( c.getUnits() == "" );
       assertTrue( c.getOutside() == "" );
       assertTrue( c.getSpatialDimensions() == 3 );
       assertTrue( c.getVolume() == 1.0 );
       assertTrue( c.getConstant() == true );
       assertEquals( true, c.isSetId() );
       assertEquals( false, c.isSetName() );
       assertEquals( false, c.isSetSize() );
       assertEquals( false, c.isSetVolume() );
       assertEquals( false, c.isSetUnits() );
       assertEquals( false, c.isSetOutside() );
       assertEquals( true, c.isSetSpatialDimensions() );
       assertEquals( true, c.isSetConstant() );
       c = null;
 }