Skip to content
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

fix JettyTest would fail if JettyWithResponseFilterEnabledTest ran before it #11803

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

TSFenwick
Copy link
Contributor

Description

this change ensures that JettyTest is setting the properties it needs in case some other test overwrites them
It also changes up the ordering of the call for setProperties to call super's first in case super is setting the same property as the class setting it.

I could have changed the JettyWithResponseFilterEnabledTest to clean up after itself, but some other test could come in and do a similar change and break JettyTest again. By making JettyTest in charge of its own dependencies it is a more resilient test.


Key changed/added classes in this PR
  • JettyTest
  • JettyWithResponseFilterEnabledTest

This PR has:

  • been self-reviewed.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.

…nabledTest ran before it

this change ensures that JettyTest is setting the properties it needs in case some other test overwrites them
this also changes up the ordering of the call for setProperties to call super's first in case super is setting the same property
@clintropolis clintropolis reopened this Oct 15, 2021
@clintropolis clintropolis merged commit 9c15f93 into apache:master Oct 18, 2021
@abhishekagarwal87 abhishekagarwal87 added this to the 0.23.0 milestone May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants