コード例 #1
0
 public void test_Species_copyConstructor()
 {
     Species o1 = new Species(2,4);
       o1.setId("c");
       o1.setSpeciesType("c1");
       assertTrue( o1.getId() ==  "c" );
       assertEquals(o1.getSpeciesType(), "c1");
       Species o2 = new Species(o1);
       assertTrue( o2.getId() ==  "c" );
       assertEquals(o2.getSpeciesType(), "c1");
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }