package
uniAdministration;
public class Testmain1Admin {
static int year = 1990;
static ModuleIF module0 = new Module ( 11100 , "OOP");
static ModuleIF module1 = new Module ( 11200 , "ABWL");
static ModuleIF module2 = new Module ( 11300 , "RO");
static ModuleIF module3 = new Module (11400, "Mathe");
static ModuleIF[] modulesAsterix1 = {module0, module1, module2};
static MemberOfUniversityIF member0 = new MemberOfUniversity ("Student", 1990, modulesAsterix1);
static MemberOfUniversityIF member1 = new MemberOfUniversity("Professor", 1970, modulesAsterix1);
static MemberOfUniversityIF[] membersAsterix1 = {member0, member1};
static UniversityAdministrationIF universityAdministration = null;
public static void main(String[] args) {
setUp();
testAdmin();
}
static public void setUp() {
universityAdministration = new UniversityAdministration (membersAsterix1, modulesAsterix1);
}
static public void testAdmin() {
universityAdministration.print(" member ");
universityAdministration.setMembers (membersAsterix1);
universityAdministration.setModules (modulesAsterix1);
universityAdministration.print("member Asterix after setMembers (membersAsterix1) and after setModules (modulesAsterix1)");
System.out.println();
}
}