I\'d like to write a TestNG test to make sure an exception is thrown under a specific condition, and fail the test if the exception is not thrown. Is there an easy way to do
catch-exception provides probably everything you need to test for expected exceptions.