zak.taccardi
07/23/2024, 4:46 AMassertFailsWith<ExceptionType> { } that also asserts against the exception message.
example: I want to catch RuntimeException("chicken") that would only work with RuntimeException instances that have the message "chicken". "beef" would not match, for example.
does something like this exist in the standard test library?robstoll
07/23/2024, 6:54 AMassertFailsWith returns the exception, you can then assert on that one further