Testing Exceptions Practice
I hope you remember how you wrote exception handling in this chapter. It's time to practice writing tests for these assertions.
Task
Your task is to cover two methods from the ExceptionHandlingExercise
class with tests using assertThrows()
and assertDoesNotThrow()
assertions in the unit test class that I have created for you.
Bedankt voor je feedback!
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 4.55
Testing Exceptions Practice
Veeg om het menu te tonen
I hope you remember how you wrote exception handling in this chapter. It's time to practice writing tests for these assertions.
Task
Your task is to cover two methods from the ExceptionHandlingExercise
class with tests using assertThrows()
and assertDoesNotThrow()
assertions in the unit test class that I have created for you.
Bedankt voor je feedback!