Need to check whether the wanted object is a Set before checking if it

is a Collection.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917360 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adam Heath
2010-03-01 03:10:12 +00:00
parent 357a6b2b78
commit ddd8af68ba
@@ -266,11 +266,11 @@ OUTER:
assertEquals(msg, (Map<?, ?>) wanted, got);
} else if (wanted == null) {
TestCase.assertEquals(msg, wanted, got);
} else if (wanted instanceof Set) {
assertEquals(msg, (Set<?>) wanted, got);
} else if (wanted instanceof Collection) {
System.err.println("c");
assertEquals(msg, (Collection<?>) wanted, got);
} else if (wanted instanceof Set) {
assertEquals(msg, (Set<?>) wanted, got);
} else if (wanted.getClass().isArray()) {
if (got == null) {
TestCase.assertEquals(msg, wanted, got);