Source : JUnit 5, Eclipse 4.8 , Selenium
I can write up and execute Selenium script without any special test framework but I wanted to use Junit 5 (because we have depe
I got this error because my test needed my Spring Boot server to be running first, so that dependency injection using @Autowired would get executed. I added these annotations:
@Transactional
@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = Server.class)
public MyTestClass () {
...
}