clone() public method

public clone ( ) : CVTerm
return CVTerm
Exemplo n.º 1
0
 public void test_CVTerm_clone()
 {
     CVTerm CVTerm1 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER);
       CVTerm1.addResource("http://www.geneontology.org/#GO:0005892");
       assertTrue( CVTerm1.getQualifierType() == libsbml.BIOLOGICAL_QUALIFIER );
       assertTrue( CVTerm1.getResources().getLength() == 1 );
       assertTrue( CVTerm1.getResources().getValue(0) ==  "http://www.geneontology.org/#GO:0005892" );
       CVTerm CVTerm2 = (CVTerm) CVTerm1.clone();
       assertTrue( CVTerm2.getQualifierType() == libsbml.BIOLOGICAL_QUALIFIER );
       assertTrue( CVTerm2.getResources().getLength() == 1 );
       assertTrue( CVTerm2.getResources().getValue(0) ==  "http://www.geneontology.org/#GO:0005892" );
       CVTerm2 = null;
       CVTerm1 = null;
 }