In google test, we have an
EXPECT_NO_THROW(x.foo());
How can I do this in JUnit? The thing I want to avoid is having to write a try/catch
block, and to specify that my test function would throw
anything. Java forces me to declare a throws
clause with the test function...
Is it possible?