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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user