Fixes #4195: making test assertion more stable (#4196)

Signed-off-by: contextshuffling <contextshuffling@gmail.com>
This commit is contained in:
contextshuffling 2019-10-14 15:54:09 -05:00 committed by Greg Wilkins
parent f09e03c586
commit 320e848c57
1 changed files with 4 additions and 1 deletions

View File

@ -471,7 +471,10 @@ public class MultiMapTest
mm.putValues("food", "apple", "cherry", "raspberry");
assertEquals("{color=red, food=[apple, cherry, raspberry]}", mm.toString());
String expected1 = "{color=red, food=[apple, cherry, raspberry]}";
String expected2 = "{food=[apple, cherry, raspberry], color=red}";
String actual = mm.toString();
assertTrue(actual.equals(expected1) || actual.equals(expected2));
}
/**