Migrating from JUnit4 to JUnit5 throws NullPointerException on @Autowired repositories
问题 I have a very simple repository test, it runs just fine when I'm using JUnit's 4 "@RunWith(SpringRunner.Class)". When I tried to use "@ExtendWith" like in the provided example I get a NullPointerException when trying to work with the repository. It seems like "@Autowire" doesn't inject the repository when using the latter annotation. Here's the pom.xml file and stack trace: https://pastebin.com/4KSsgLfb Entity Class: package org.tim.entities; import lombok.AccessLevel; import lombok.Data;