コード例 #1
0
 public void test_SpeciesReference_copyConstructor()
 {
     SpeciesReference o1 = new SpeciesReference(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       SpeciesReference o2 = new SpeciesReference(o1);
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }
コード例 #2
0
 public void test_SpeciesReference_assignmentOperator()
 {
     SpeciesReference o1 = new SpeciesReference(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       SpeciesReference o2 = new SpeciesReference(2,4);
       o2 = o1;
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }