Example #1
0
 public void test_UnitDefinition_copyConstructor()
 {
     UnitDefinition o1 = new UnitDefinition(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       UnitDefinition o2 = new UnitDefinition(o1);
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }
Example #2
0
 public void test_UnitDefinition_assignmentOperator()
 {
     UnitDefinition o1 = new UnitDefinition(2,4);
       o1.setId("c");
       assertTrue( o1.getId() ==  "c" );
       UnitDefinition o2 = new UnitDefinition(2,4);
       o2 = o1;
       assertTrue( o2.getId() ==  "c" );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }