-
Notifications
You must be signed in to change notification settings - Fork 197
fix: improves method name handling executors #215
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
Conversation
…ed characters in test method names when composing urls in ServletMethodExecutor. Fixes arquillian#214
...ocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/ServletMethodExecutor.java
Show resolved
Hide resolved
protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ProtocolTestCase.java
Outdated
Show resolved
Hide resolved
CI failure seems to be unrelated to my changes. Locally I have successfully run the following:
|
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.
Thank you very much for this awesome contribution. I really do appreciate an effort not only in going through the code base and fixing it but also all the comments and thoughts you shared. 🥇
As for the new method and breaking backward compatibility - most of the test runners are under this org umbrella so I can take care of it. For the others (and there are not that many I think) - how about we mark the old getMethod
@Depracated
pointing to why the new one should be used in Javadoc?
protocols/servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ProtocolTestCase.java
Outdated
Show resolved
Hide resolved
Yeah, Travis is getting unreliable lately. Don't worry, I will have a look now. In parallel, I'm thinking about moving to CircleCI or GH Actions. |
Thanks for noticing my efforts and finding my contribution valuable. As an OSS project maintainer myself I always try my best on PRs to other projects so that it's as easy as possible for the maintainers to review. Putting in the effort also increases the chances of the contribution being accepted and in the end the main driver here is to get the issue I'm affected by fixed. 😃 |
Hmmm... I don't quite follow. Why would we want to deprecate Btw, I've noticed a couple of issues in this PR (two implementations of |
Correct, I think I was a bit too fast.
I think you can simply add another commit and I will take care of bringing those changes back to master, don't worry about that. |
Ok, I believe I have addressed all of your comments, over to you, @bartoszmajsak. |
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.
Thanks @erdi, I will run a few tests in combination with another project and cut the release today. Many thanks for your contribution.
Short description of what this resolves:
This resolves #214 by adding support for JUnit compatible testing frameworks for which
FrameworkMethod.getName()
!=FrameworkMethod.getMethod().getName()
and which allow test method names with reserved url characters.Changes proposed in this pull request:
ServletMethodExecutor
ServletMethodExecutor
Additional notes
I understand that this fixes two separate issues but I decided to submit fixes for them as a single PR because I believe that are interrelated. Please let me know if you'd like to have this split into two commits and two PRs.
I believe that changes made are backwards compatible with the only problematic one in my opinion being introduction of
TestMethodExecutor.getMethodName()
. Ideally it would be added as a default method but Arquillian is still Java 6 compatible so it's not possible. I'm not sure if users are expected to have customTestMethodExecutor
implementation but if they are then I'm looking forward on suggestions on how this could be implemented without the potentially breaking change.I have added a test for my changes, tried to keep the changes to minimum and follow the conventions set out in the project. Please do let me know if I missed something and I will gladly apply any necessary changes to this PR.