I have created a simple unit test but IntelliJ is incorrectly highlighting it red. marking it as an error
No beans?
All you need to do to make this work is the following code:
@ComponentScan public class PriceWatchTest{ @Autowired private PriceWatchJpaRepository priceWatchJpaRepository; ... ... }