非法参数名称 - Arquillian with Cucumber

Illegal argument name - Arquillian with 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

更改此部分:

@Features("classpath:br/com/cielo/batcha/features/MSG_MANUTENCAO.feature")

收件人:

@Features("src/test/java/br/com/cielo/batcha/features/MSG_MANUTENCAO.feature")

解决了我的问题。