I'm using eclipse to run my tests with: right click test method -> Run As -> JUnit Test. This results in the following error:
java.lang.UnsupportedClassVersionError: com/bazaarvoice/jolt/JsonUtils : Unsupported major.minor version 52.0
However, when running the following command, I do not run into this issue
mvn -Dtest=MyTestClass#myTestMethod test
I tried running and compiling using the same version of java (1.8) following this answer, but I'm still getting this major.minor error.
Is there some specific java version that I need to set up for junit that I'm missing?