【发布时间】:2017-01-30 19:48:38
【问题描述】:
在 inteliji 中,我尝试从小黄瓜文件中生成步骤。
import cucumber.api.PendingException;
public class LoginStep {
@cucumber.api.java.en.Then("^I should see userform page$")
public void iShouldSeeUserformPage() throws Throwable {
throw new PendingException();
}
}
在@cucumber.api.java.en.Then 行中,它抱怨
Cannot resolve symbol 'java'
这是我的pom.xml:
<dependencies>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-junit -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
</dependency>
</dependencies>
我该如何解决?
【问题讨论】:
-
你在使用
maven吗?是否添加了cucumber-java依赖?