Esempio n. 1
0
 public void test_FunctionDefinition_copyConstructor()
 {
     FunctionDefinition o1 = new FunctionDefinition(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       ASTNode node = new ASTNode(libsbml.AST_CONSTANT_PI);
       o1.setMath(node);
       node = null;
       assertTrue( o1.getMath() != null );
       FunctionDefinition o2 = new FunctionDefinition(o1);
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getMath() != null );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }