Skip to content

Commit

Permalink
docs: Lesson constructor for tests (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancolgate authored Feb 24, 2025
1 parent b66275a commit c8b63e6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@ public class Lesson {
this.studentGroup = studentGroup;
}
// This constructor is only for tests
Lesson(String id, String subject, String teacher, String studentGroup, Timeslot timeslot, Room room) {
this(id, subject, teacher, studentGroup);
this.timeslot = timeslot;
this.room = room;
}
public String getId() {
return id;
}
Expand Down

0 comments on commit c8b63e6

Please sign in to comment.