TestExecutionExceptionHandlerTest#ATestClass测试类中的几个测试抛出异常,但我认为 Junit 的单元测试通过得很好。有人能解释一下发生了什么事吗?
最佳答案
This answer解释它。更具体地说,Sam Brannen 的最后评论:
Maven Surefire [...] is not executing your static nested test class because of its default exclude rule.
关于java - 为什么 Spring TestExecution ExceptionHandler Tests 的 ATestClass 的测试不会失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59796439/