Skip to content

Commit

Permalink
UT + condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SodhiA1 committed Nov 30, 2023
1 parent 6072f00 commit a0305cb
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ private Constants() {}
public static final String UPPERBOUND = "999";
public static final String DEFAULTNUMBER = "000";
public static final String INDEPENDENT="INDEPEND";
public static final String OFFSHORE="OFFSHORE";
public static final String NONINDEPENDENT="FED_BAND";
public static final String INDEPENDENTFNS="INDP_FNS";
}
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ private SchoolEntity moveSchoolHelper(School school, School existingSchool) {
school.getSchoolNumber(), UUID.fromString(school.getDistrictId()));

if(school.getSchoolCategoryCode().equals(existingSchool.getSchoolCategoryCode()) &&
!school.getSchoolCategoryCode().equals(Constants.INDEPENDENT) && !school.getSchoolCategoryCode().equals(Constants.NONINDEPENDENT) && schools.isEmpty()) {
!school.getSchoolCategoryCode().equals(Constants.INDEPENDENT) && !school.getSchoolCategoryCode().equals(Constants.NONINDEPENDENT)
&& !school.getSchoolCategoryCode().equals(Constants.INDEPENDENTFNS) && !school.getSchoolCategoryCode().equals(Constants.OFFSHORE)
&& schools.isEmpty()) {
schoolEntity.setSchoolNumber(school.getSchoolNumber());
} else {
schoolEntity.setSchoolNumber(
Expand Down
Loading

0 comments on commit a0305cb

Please sign in to comment.