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 resources test #866

Closed
wants to merge 4 commits into from
Closed

Fix resources test #866

wants to merge 4 commits into from

Conversation

FanYuliang
Copy link

Hi,

By running the following commands:
mvn install -DskipTests,
mvn edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=de.neemann.gui.language.ResourcesTest,

testWrite() method fails sometimes. The reason is that Resources() class has a private HashMap resourceMap, which is passed as an object to marshal method of a com.thoughtworks.xstream.XStream object. Because the order of resourceMap is not deterministic, the XML output of marshal will not be deterministic either.

I fixed the flaky test by comparing the actual output with all possible combinations of the output.

@hneemann
Copy link
Owner

see #876

@hneemann hneemann closed this Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants