Examples of Enrolment


Examples of com.github.C204_242_DJSMT.Assignment_2.Enrolment

  }
 
  @Test public void createDeleteTest() {
    Student s = new Student("Name");
    ClassGroup cls = new ClassGroup("name", "description");
    Enrolment enrol = EnrolmentManager.getInstance().addEnrolment(s, cls);
    Assert.assertTrue(EnrolmentManager.getInstance().contains(enrol));
    Assert.assertTrue(EnrolmentManager.getInstance().delete(enrol));
    Assert.assertFalse(EnrolmentManager.getInstance().contains(enrol));
  }
View Full Code Here

Examples of com.github.C204_242_DJSMT.Assignment_2.Enrolment

public class EnrolmentTest {
  Student testStudent = new Student("name");
  ClassGroup testClass = new ClassGroup("name", "description");
 
  @Test public void creationTest1() {
    new Enrolment(testStudent, testClass);
  }
View Full Code Here

Examples of com.github.C204_242_DJSMT.Assignment_2.Enrolment

    new Enrolment(testStudent, testClass);
  }
 
  @Test (expected=IllegalArgumentException.class)
  public void creationTest2() {
    new Enrolment(null, testClass);
  }
View Full Code Here

Examples of com.github.C204_242_DJSMT.Assignment_2.Enrolment

    new Enrolment(null, testClass);
  }
 
  @Test (expected=IllegalArgumentException.class)
  public void creationTest3() {
    new Enrolment(testStudent, null);
  }
View Full Code Here

Examples of org.fenixedu.academic.domain.Enrolment

    private int countEnrolments(final CurricularCourse curricularCourse, final ExecutionInterval interval) {
        int c = 0;
        for (final CurriculumModule curriculumModule : curricularCourse.getCurriculumModulesSet()) {
            if (curriculumModule.isEnrolment()) {
                final Enrolment enrolment = (Enrolment) curriculumModule;
                final ExecutionSemester executionSemester = enrolment.getExecutionPeriod();
                if (interval == executionSemester || interval == executionSemester.getExecutionYear()) {
                    c++;
                }
            }
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.Enrolment

        spreadsheet.setHeader("Distribuicao Creditos Orientador");
        spreadsheet.setHeader("Affiliacao Corientador");
        spreadsheet.setHeader("Distribuicao Creditos Corientador");

        for (final Thesis thesis : getRootDomainObject().getThesesSet()) {
            final Enrolment enrolment = thesis.getEnrolment();
            final ExecutionSemester executionPeriod = enrolment.getExecutionPeriod();
            if (executionPeriod.getExecutionYear() == executionYear) {
                final ThesisPresentationState thesisPresentationState =
                        ThesisPresentationState.getThesisPresentationState(thesis);;

                final Degree degree = enrolment.getStudentCurricularPlan().getDegree();
                final DegreeType degreeType = degree.getDegreeType();

                final Row row = spreadsheet.addRow();
                row.setCell(thesis.getStudent().getNumber().toString());
                row.setCell(thesis.getStudent().getPerson().getName());
View Full Code Here

Examples of org.fenixedu.academic.domain.Enrolment

                degreeModule.getName();
            }
            if (curriculumModule.isCurriculumLine()) {
                final CurriculumLine curriculumLine = (CurriculumLine) curriculumModule;
                if (curriculumLine.isEnrolment()) {
                    final Enrolment enrolment = (Enrolment) curriculumLine;
                    for (final EnrolmentEvaluation enrolmentEvaluation : enrolment.getEvaluationsSet()) {
                        enrolmentEvaluation.getGrade();
                    }
                }
            } else {
                final CurriculumGroup curriculumGroup = (CurriculumGroup) curriculumModule;
View Full Code Here

Examples of org.fenixedu.academic.domain.Enrolment

            if (iEnrolment.isExternalEnrolment()) {
                continue;
            }

            final Enrolment enrolment = (Enrolment) iEnrolment;
            if (enrolment.getStudentCurricularPlan() != studentCurricularPlan) {
                throw new DomainException("error.InternalSubstitution.invalid.enrolment");
            }
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.Enrolment

        ensureSourceNoCourseGroupCurriculumGroup(studentCurricularPlan);
        final NoCourseGroupCurriculumGroup curriculumGroup = getInternalCreditsSourceGroup(studentCurricularPlan);

        for (final IEnrolment iEnrolment : enrolments) {
            final Enrolment enrolment = (Enrolment) iEnrolment;
            enrolment.setCurriculumGroup(curriculumGroup);
        }

    }
View Full Code Here

Examples of org.fenixedu.academic.domain.Enrolment

     */
    private void moveExistingEnrolmentsToExtraCurriculumGroup() {
        final ExtraCurriculumGroup extraCurriculumGroup = ensureExtraCurriculumGroup();

        for (final EnrolmentWrapper wrapper : getEnrolmentsSet()) {
            final Enrolment enrolment = (Enrolment) wrapper.getIEnrolment();
            enrolment.setCurriculumGroup(extraCurriculumGroup);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.