java非法参数名Arquillian和Cucumber
我正在学习如何使用Arquillian框架和Cucumber jvm编写一个简单的JUnit测试
代码:
package br.com.cielo.batcha.test;
...
@RunWith(CukeSpace.class)
@Features("classpath:br/com/cielo/batcha/features/MSG_MANUTENCAO.feature")
public class ARunner {
@Deployment
public static JavaArchive createDeployment() {
return ShrinkWrap.create(JavaArchive.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
.addClass(BatchaApplication.class);
}
@Quando("^Sistema de teste estiver conectado ao Banco$")
public void sistema_de_teste_estiver_conectado_ao_Banco() throws Throwable {
Assert.fail("Not yet implemented");
}
}
当我尝试运行上述测试时,收到以下消息:
Tests in error:
ARunner.performInternalCucumberOperations >> IllegalArgument name
有什么办法可以解决这个问题吗?tks
# 1 楼答案
更改此部分:
致:
解决了我的问题