i know the question is quite old, but this also happened to me using latest eclipse version in 2020.

in the end, i had to configure the build path of the project, and in the "source" tab, scroll down to src/test/java folder and change "contains test resources" from false to true (double click).

Related Query

More Query from same tag