如何使用JUnit RunWith修复语法错误

如何使用JUnit RunWith修复语法错误,junit,import,junit4,Junit,Import,Junit4,我完全导入了跑步者,但仍然面临错误。我想知道原因 范例 package example.testcourse import com.intuit.karate.junit.Karate; import org.junit.runner.RunWith; // here I got syntax error but I think it's right. So, don't know is this the error or something else @RunWith(Karate.cl

我完全导入了跑步者,但仍然面临错误。我想知道原因

范例

package example.testcourse

import com.intuit.karate.junit.Karate;
import org.junit.runner.RunWith; // here I got syntax error but I think it's right. So, don't know is this the error or something else 

@RunWith(Karate.class)
public class courselist{

}

确切的错误是什么?junit库是否添加到类路径?有时需要清理结果。项目->清洁。我已经修好了,谢谢!