Greetings,
I have this issue after upgrading to Cucumber 1.2.5 from 1.1.8
I already found some posts that seem to discuss the same issue here:
and also here:
From all that I understand that this error is returned if two classes have different @ContextHierarchy/@ContextConfiguration annotations.
In my case however, I have only one class annotated with @ContextHierarchy({@ContextConfiguration("classpath:/cucumber.xml")}), and the rest of the glue classes extend this class and do not contain any such annotations themselves.
The parent class looks like this:
@ContextHierarchy({@ContextConfiguration("classpath:/cucumber.xml")})
@Component
public abstract class BddGlue {
}
And the glue classes just extend it so there is no duplication of mixing of different annotations. Nevertheless, I still get the above mentioned error.
Can you please advise what am I doing wrong here?
Thanks!
Eugene