Hi,
I am new to cucumber-jvm, i used maven with following dependencies. for the @After, and other annotations, when I hover over the @After keyword, I am suggested only import cucumber.api.java.After; However I was told that i should not be importing that package where as I should use import cucumber.annotation.After;
The explanation given was that the cucumber.api is not intended for annotations rather I should be using cucumber.annotation. However when I googled for cucumber.annotation package, I could not find any javadoc. Why are there 2 packages if they fulfil the same purpose, which package is the official cucumber one. is the cucumber.annotations not the official package.(is it third party one)
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>1.1.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.1.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
cheers,
Shahnaaz