Skip to content

Commit 11b0e7e

Browse files
author
AmiyahJo
committed
fix: apply throw exception to addStudent tests
1 parent ec8b685 commit 11b0e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lesson_16/objects/objects_app/src/test/java/com/codedifferently/lesson16/amiyahjones/JobReadinessProgramTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public class JobReadinessProgramTest {
99

1010
@Test
11-
void testAddStudent() {
11+
void testAddStudent() throws ClassroomFullException {
1212
//Arrange
1313
JobReadinessProgram program = new JobReadinessProgram(null, false, null);
1414

@@ -20,7 +20,7 @@ void testAddStudent() {
2020
}
2121

2222
@Test
23-
void testGetStudentCount() {
23+
void testGetStudentCount() throws ClassroomFullException {
2424
//Arrange
2525
JobReadinessProgram program = new JobReadinessProgram(null, true, null);
2626
program.addStudent("John");

0 commit comments

Comments
 (0)