test(expectedArray[c], actualArray[c]);
}
}
else if (expected instanceof Struct) {
Struct expectedStruct = (Struct) expected;
Object[] expectedAttrs = expectedStruct.getAttributes();
Struct actualStruct = (Struct) actual;
Object[] actualAttrs = actualStruct.getAttributes();
assertEquals("Record Length", expectedAttrs.length, actualAttrs.length);
for (int c = 0; c < expectedAttrs.length; ++c) {
test(expectedAttrs[c], actualAttrs[c]);
}
}
else if (expected instanceof Record) {
Record expectedStruct = (Record) expected;
Object[] expectedAttrs = expectedStruct.getValues();
Record actualStruct = (Record) actual;
Object[] actualAttrs = actualStruct.getValues();
assertEquals("Record Length", expectedAttrs.length, actualAttrs.length);
for (int c = 0; c < expectedAttrs.length; ++c) {
test(expectedAttrs[c], actualAttrs[c]);
}