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.
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 7
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione