Incompatible types. Found: 'java.lang.Class<junittest.Calculator>', required: 'java.lang.Class<? extends org.junit.runner.Runner>'
时间: 2024-05-20 20:16:37 浏览: 185
java.io.InvalidClassException local class incompatible 处理方法
This error message typically occurs when trying to run a JUnit test using a version of JUnit that is not compatible with the code being tested.
To resolve this issue, ensure that you are using the correct version of JUnit for your code. If you are using an older version of JUnit, try upgrading to a newer version to see if that resolves the issue. Additionally, make sure that your test class is properly annotated with the `@Test` annotation and that you have imported the necessary JUnit classes.
阅读全文