-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
intro words with dynamically added stages #1469
Comments
Hi @adrian-herscu You however told the compile that MStage is Using them as generic types should not be necessary, if you don't intend to subclass them further. If you need to keep the generics, I suggest you try to cast to a more specific generic type. |
Feel free, to close. |
I must reuse them somehow... classDiagram
Stage <|-- StageEx
StageEx <|-- GenericFixtures
StageEx <|-- GenericActions
StageEx <|-- GenericVerifications
GenericFixtures <|-- WebDriverFixtures
GenericActions <|-- WebDriverActions
GenericVerifications <|-- WebDriverVerifications
GenericFixtures <|-- RestFixtures
GenericActions <|-- RestActions
GenericVerifications <|-- RestVerifications
GenericFixtures <|-- RabbitMQFixtures
GenericActions <|-- RabbitMQActions
GenericVerifications <|-- RabbitMQVerifications
Further, each application has its specific steps derived from these, adding an additional layer of subclasses for each relevant interface. A scenario may look like this:
All my trouble appeared later when I discovered that additional stages do not play well with TestNG's parallel modes. |
Ok, so I manage to reproduce your issue:
But I am still conviced that this is a java, and not a JGiven limitation... I actually noticed that we kap of the generic chain at |
Instead of public ExtraStage<?> extraStage() {
return addStage(NFixtures.class);
} This is what I did originally. |
I would have to look deeper into what "has no effect" actually means here, before setting out for a cure |
Well... It seems that |
The text was updated successfully, but these errors were encountered: