Skip to content

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