Saved my day. As I am following along with a tutorial, I’m adding to and changing an existing project. Things are bound to break during the changes, but my Maven test dependencies suddenly started to be greyed out, resulting in import errors in the auto-generated test class.
To fix this I just used Task 2,
- Right click on Project
- Click on
Maven - Click on
Update Project...
Fixed 😀