-
Notifications
You must be signed in to change notification settings - Fork 7
Patched an issue with formatting empty elements #480
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
| * | ||
| * @param xmlDocumentString Rendered POM Document Contents (string-formatted) | ||
| * @return map of (index, matchData object) reverse ordered | ||
| * @return map of (index, matchData object) reve/rse ordered |
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.
Typo
| import org.xmlunit.diff.Diff; | ||
| import org.xmlunit.diff.Difference; | ||
|
|
||
| @Execution(ExecutionMode.SAME_THREAD) |
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.
This seems like a smell - do we need this and why?
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.
No clue. Without this, the tests are flaky and interfere with each other. Sometimes it works, sometimes don't.
Seemed to work fine before adding the new test. But I did fix a bug with resource location when adding it.
I can do a deeper investigation if you merit it worth it.
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.
Yes please. I doubt the real use of this is multithreaded but I think at a minimum we need to understand this a little bit better and leave some comments or something.
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.
The issue was being caused because we were always using the same instance of FormatCommand from a static variable. I was able to reproduce it in the main branch, but only after dozens of runs.
|



No description provided.