I know that there is some similar issue, but I have some problem with bind steps to feature cucumber file. This is my cucumber runner
@RunWith(Cucumber.class)
public class CucumberTests {
}
annotation
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@SpringBootTest(classes = AppRunner.class)
@RunWith(Cucumber.class)
@interface CucumberSteps {
}
steps
@CucumberSteps
public class QueueSenderStepsDefs {
@Given("^I have item$")
public void iHaveItem() throws Throwable {
System.out.println("Asd");
}
@When("^I send it to jmsQueueSender$")
public void iSendItToJmsQueueSender() throws Throwable {
System.out.println("dff");
}
@Then("^item is on queue$")
public void itemIsOnQueue() throws Throwable {
System.out.println("sdasdsa");
}
}
I always get "You can implement missing steps with the snippets below: ". I use InteliJ IDEA and I have set glue in configuration. But still doesn't works. Can you help me?