Why do the tests of the ATestClass of Spring's TestExecutionExceptionHandlerTests not fail?

Hans Wurst :

Several tests in the test class of TestExecutionExceptionHandlerTest#ATestClass throw exceptions yet I assume the unit tests of Junit pass just fine. Can someone explain what is going on?

Hans Wurst :

This answer explains it. More specifically the last comment by Sam Brannen:

Maven Surefire [...] is not executing your static nested test class because of its default exclude rule.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=357944&siteId=1