public void test_Event_clone() { Event o1 = new Event(2,4); o1.setId("c"); assertTrue( o1.getId() == "c" ); Event o2 = o1.clone(); assertTrue( o2.getId() == "c" ); assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() ); o2 = null; o1 = null; }
public void test_Event_copyConstructor() { Event o1 = new Event(2,4); o1.setId("c"); assertTrue( o1.getId() == "c" ); Event o2 = new Event(o1); assertTrue( o2.getId() == "c" ); assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() ); o2 = null; o1 = null; }
public void test_Event_assignmentOperator() { Event o1 = new Event(2,4); o1.setId("c"); assertTrue( o1.getId() == "c" ); Event o2 = new Event(2,4); o2 = o1; assertTrue( o2.getId() == "c" ); assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() ); o2 = null; o1 = null; }