clone() public method

public clone ( ) : KineticLaw
return KineticLaw
Esempio n. 1
0
 public void test_KineticLaw_clone()
 {
     KineticLaw o1 = new KineticLaw(2,4);
       Parameter p = new Parameter(2,4);
       p.setId("jake");
       o1.addParameter(p);
       p = null;
       assertTrue( o1.getNumParameters() == 1 );
       assertTrue( o1.getParameter(0).getId() ==  "jake" );
       KineticLaw o2 = o1.clone();
       assertTrue( o2.getNumParameters() == 1 );
       assertTrue( o2.getParameter(0).getId() ==  "jake" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }