-
Notifications
You must be signed in to change notification settings - Fork 2
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
Try alternative approach that does not need the @Vetoed annotation or custom event #30
Conversation
…ters. The parameters are resolved from TestEnrichers. Signed-off-by: James R. Perkins <[email protected]>
… custom event Signed-off-by: Scott M Stark <[email protected]>
} | ||
|
||
void setMethodParameters(MethodParameters methodParameters) { | ||
getManager().bind(ApplicationScoped.class, MethodParameters.class, methodParameters); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the binding scope should be TestScoped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be my guess as well. I'll pull this down and do some more testing though.
Signed-off-by: Scott M Stark <[email protected]>
This doesn't seem to work with the What we might need to end up doing is implementing the Regardless of this approach or the original approach, injection does not work for |
Why do we need to inject into |
@starksm64 I can see cases where say you want to invoke like a reset on the server so you'd want to inject a URL. Or in the case of WildFly you can inject something like a That said, we could just not support it for now and consider support for it later. You could really just use instance fields instead. The I'm going to do some more thinking on this could work. I do agree requiring an annotation for some parameters is less than ideal. There could be something in JUnit and/or Arquillian that could help avoid that. The issue is really when JUnit wants to resolve parameters of in-container tests. |
We could always just add a new |
The issue seems to be that
Ha, I was actually about to say something really similar. I was typing it out when I saw this come through :) That maybe we have a |
Okay, I've updated to arquillian#608 to work without the |
See what you think of this approach.