Quiz on Nested Tests

Test what you’ve learned about nested tests.

1

What will happen if the @Nested annotation is added to a static inner class?

A)

A compile error

B)

No, compile error because tests in the inner class are ignored

C)

No, compile error because all inner tests are run properly and no tests are ignored

Question 1 of 30 attempted

Get hands-on with 1400+ tech skills courses.