See the discussion here: https://github.com/spring-projects/spring-boot/issues/14716#issuecomment-560111580 We should consider when to remove JUnit 4