getCreatedDate() public méthode

public getCreatedDate ( ) : Date
Résultat Date
 public void test_ModelHistory_setCreatedDate1()
 {
     ModelHistory mh = new  ModelHistory();
       assertTrue( mh != null );
       Date date = new  Date("2005-12-30T12:15:32+02:00");
       int i = mh.setCreatedDate(date);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( mh.isSetCreatedDate() == true );
       assertTrue( date != mh.getCreatedDate() );
       string dateChar = mh.getCreatedDate().getDateAsString();
       assertTrue((  "2005-12-30T12:15:32+02:00" == dateChar ));
       i = mh.setCreatedDate(null);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( mh.isSetCreatedDate() == false );
       date = null;
       mh = null;
 }
 public void test_ModelHistory_copyConstructor()
 {
     ModelHistory mh = new ModelHistory();
       ModelCreator mc = new ModelCreator();
       mc.setFamilyName("Keating");
       mc.setGivenName("Sarah");
       mc.setEmail("*****@*****.**");
       mh.addCreator(mc);
       mc = null;
       Date date = new Date(2005,12,30,12,15,45,1,2,0);
       mh.setCreatedDate(date);
       date = null;
       assertTrue( mh.getCreatedDate().getMonth() == 12 );
       assertTrue( mh.getCreatedDate().getSecond() == 45 );
       assertTrue( ((ModelCreator) mh.getCreator(0)).getFamilyName() ==  "Keating" );
       ModelHistory mh2 = new ModelHistory(mh);
       assertTrue( mh2.getCreatedDate().getMonth() == 12 );
       assertTrue( mh2.getCreatedDate().getSecond() == 45 );
       assertTrue( ((ModelCreator) mh2.getCreator(0)).getFamilyName() ==  "Keating" );
       mh2 = null;
       mh = null;
 }
 public void test_ModelHistory_setCreatedDate()
 {
     ModelHistory history = new  ModelHistory();
       assertTrue( history != null );
       assertTrue( history.isSetCreatedDate() == false );
       Date date = new  Date(2005,12,30,12,15,45,1,2,0);
       history.setCreatedDate(date);
       assertTrue( history.isSetCreatedDate() == true );
       date = null;
       Date newdate = history.getCreatedDate();
       assertTrue( newdate.getYear() == 2005 );
       assertTrue( newdate.getMonth() == 12 );
       assertTrue( newdate.getDay() == 30 );
       assertTrue( newdate.getHour() == 12 );
       assertTrue( newdate.getMinute() == 15 );
       assertTrue( newdate.getSecond() == 45 );
       assertTrue( newdate.getSignOffset() == 1 );
       assertTrue( newdate.getHoursOffset() == 2 );
       assertTrue( newdate.getMinutesOffset() == 0 );
       history = null;
 }
 public void test_ModelHistory_create()
 {
     ModelHistory history = new  ModelHistory();
       assertTrue( history != null );
       assertTrue( history.getListCreators() != null );
       assertTrue( history.getCreatedDate() == null );
       assertTrue( history.getModifiedDate() == null );
       history = null;
 }