public void test_L3_Unit_hasRequiredAttributes() { Unit u = new Unit(3,1); assertEquals( false, u.hasRequiredAttributes() ); u.setKind(libsbml.UNIT_KIND_MOLE); assertEquals( false, u.hasRequiredAttributes() ); u.setExponent(0); assertEquals( false, u.hasRequiredAttributes() ); u.setMultiplier(0.45); assertEquals( false, u.hasRequiredAttributes() ); u.setScale(2); assertEquals( true, u.hasRequiredAttributes() ); u = null; }
public void test_Unit() { Unit u = new Unit(2,4); assertEquals( false, (u.hasRequiredAttributes()) ); u.setKind(libsbml.UNIT_KIND_MOLE); assertEquals( true, u.hasRequiredAttributes() ); u = null; }