public void test_SpeciesType_copyConstructor() { SpeciesType o1 = new SpeciesType(2,4); o1.setId("c"); assertTrue( o1.getId() == "c" ); SpeciesType o2 = new SpeciesType(o1); assertTrue( o2.getId() == "c" ); assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() ); o2 = null; o1 = null; }
public void test_SpeciesType_assignmentOperator() { SpeciesType o1 = new SpeciesType(2,4); o1.setId("c"); assertTrue( o1.getId() == "c" ); SpeciesType o2 = new SpeciesType(2,4); o2 = o1; assertTrue( o2.getId() == "c" ); assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() ); o2 = null; o1 = null; }