public void test_L3_SpeciesReference_hasRequiredAttributes() { SpeciesReference sr = new SpeciesReference(3,1); assertEquals( false, sr.hasRequiredAttributes() ); sr.setSpecies( "id"); assertEquals( false, sr.hasRequiredAttributes() ); sr.setConstant(false); assertEquals( true, sr.hasRequiredAttributes() ); sr = null; }
public void test_SpeciesReference() { SpeciesReference sr = new SpeciesReference(2,4); assertEquals( false, (sr.hasRequiredAttributes()) ); sr.setSpecies("sr"); assertEquals( true, sr.hasRequiredAttributes() ); sr = null; }