@Test public void canSayIfSectionWouldCauseConcomittingCourseConflictWithSchedule() { List<Conflict> conflicts = filter.run(scheduleMock, aSectionMock); assertEquals(1, conflicts.size()); verify(aSectionMock).areConcomitting(anotherSectionMock); verify(nextFilterMock).run(scheduleMock, aSectionMock); }
@Test public void canDetectConcimittingCoursesConflicts() { List<Conflict> conflicts = filter.run(scheduleMock); assertEquals(1, conflicts.size()); verify(aSectionMock).areConcomitting(anotherSectionMock); verify(nextFilterMock).run(scheduleMock); }