Prev Next

Testing / Junit Interview questions II

How @Test annotation is used for testing exceptions?

@Test (expected = Exception.class)

The limitation is only one exception per test method.

More Related questions...

Show more question and Answers...


Comments & Discussions