• Tutorials
  • Courses
  • Tracks

Question 6

Last Updated :
Discuss
Comments

What does the assertion assertThrows() verify in JUnit 5?

That two values are equal

That a block of code throws a specific exception

That no exception is thrown

That a condition is false

Share your thoughts in the comments