public void test_L3_Compartment_initDefaults() { Compartment c = new Compartment(3, 1); c.setId("A"); assertEquals(true, c.isSetId()); assertEquals(false, c.isSetName()); assertEquals(false, c.isSetSize()); assertEquals(false, c.isSetVolume()); assertEquals(false, c.isSetUnits()); assertEquals(false, c.isSetConstant()); assertEquals(false, c.isSetSpatialDimensions()); c.initDefaults(); assertTrue(("A" == c.getId())); assertTrue(c.getName() == ""); assertTrue(("litre" == c.getUnits())); assertTrue(c.getSpatialDimensions() == 3); assertTrue(c.getSize() == 1); assertTrue(c.getConstant() == true); assertEquals(true, c.isSetId()); assertEquals(false, c.isSetName()); assertEquals(false, c.isSetSize()); assertEquals(false, c.isSetVolume()); assertEquals(true, c.isSetUnits()); assertEquals(true, c.isSetConstant()); assertEquals(true, c.isSetSpatialDimensions()); c = null; }