Skip to content

Commit

Permalink
LMSA-9068 - added unit test for impersonation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
iudsobiera committed Dec 7, 2023
1 parent d211bc4 commit 8d95b15
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,15 @@ public void nonSisCourseReturnNoSections() {
Assertions.assertTrue(sectionMap.isEmpty());
}

@Test
public void nonSisCourseImpersonationModeReturnSections() {
Map<CanvasTerm, List<SectionUIDisplay>> sectionMap = crosslistService.buildSectionsMap(courseList1, termMap,
crosslistService.getTermStartDateComparator(), courseList1.get(1), false, false, true, true);

Assertions.assertFalse(sectionMap.isEmpty());
}


private Course createCourse(String courseId, String sisCourseId) {
Course course = new Course();
course.setId(courseId);
Expand Down

0 comments on commit 8d95b15

Please sign in to comment.