getListCreators() публичный Метод

public getListCreators ( ) : ModelCreatorList
Результат ModelCreatorList
Пример #1
0
 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;
 }
Пример #2
0
 public void test_ModelHistory_addCreator()
 {
     ModelCreator newMC;
       ModelHistory history = new  ModelHistory();
       assertTrue( history.getNumCreators() == 0 );
       assertTrue( history != null );
       ModelCreator mc = new  ModelCreator();
       assertTrue( mc != null );
       mc.setFamilyName( "Keating");
       mc.setGivenName( "Sarah");
       mc.setEmail( "*****@*****.**");
       mc.setOrganisation( "UH");
       history.addCreator(mc);
       assertTrue( history.getNumCreators() == 1 );
       mc = null;
       newMC = history.getListCreators().get(0);
       assertTrue( newMC != null );
       assertTrue((  "Keating" == newMC.getFamilyName() ));
       assertTrue((  "Sarah" == newMC.getGivenName() ));
       assertTrue((  "*****@*****.**" == newMC.getEmail() ));
       assertTrue((  "UH" == newMC.getOrganisation() ));
       history = null;
 }