Skip to content

Commit

Permalink
Added program eligibility changes and fte calc
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Jan 15, 2025
1 parent 6ca1bc1 commit e189b91
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ca.bc.gov.educ.studentdatacollection.api.calculator.impl;

import ca.bc.gov.educ.studentdatacollection.api.calculator.FteCalculator;
import ca.bc.gov.educ.studentdatacollection.api.constants.v1.ZeroFteReasonCodes;
import ca.bc.gov.educ.studentdatacollection.api.model.v1.SdcSchoolCollectionStudentEntity;
import ca.bc.gov.educ.studentdatacollection.api.struct.StudentRuleData;
import ca.bc.gov.educ.studentdatacollection.api.struct.external.institute.v1.SchoolTombstone;
Expand Down Expand Up @@ -155,7 +156,7 @@ void testCalculateFte_WithoutSupportBlocksAndEmptyCourses_ThenFteReturned() {
// Then
BigDecimal expectedFte = BigDecimal.ZERO;
assertEquals(expectedFte, result.getFte());
assertNull(result.getFteZeroReason());
assertEquals(ZeroFteReasonCodes.NUM_COURSES.getCode(), result.getFteZeroReason());
verify(nextCalculator, never()).calculateFte(any());
}

Expand All @@ -175,7 +176,7 @@ void testCalculateFte_WithoutSupportBlocksAndNullCourses_ThenFteReturned() {
// Then
BigDecimal expectedFte = BigDecimal.ZERO;
assertEquals(expectedFte, result.getFte());
assertNull(result.getFteZeroReason());
assertEquals(ZeroFteReasonCodes.NUM_COURSES.getCode(), result.getFteZeroReason());
verify(nextCalculator, never()).calculateFte(any());
}

Expand Down

0 comments on commit e189b91

Please sign in to comment.