clone() public method

public clone ( ) : SpeciesReference
return SpeciesReference
示例#1
0
 public void test_SpeciesReference_clone()
 {
     SpeciesReference o1 = new SpeciesReference(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       SpeciesReference o2 = o1.clone();
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }