for (int j = 0; j < arrayFS1.size(); j++) {
Assert.assertEquals(arrayFS1.get(j), arrayFS2.get(j), 0);
}
}
} else if (CAS.TYPE_NAME_FS_ARRAY.equals(rangeTypeName)) {
ArrayFS arrayFS1 = (ArrayFS) fs1.getFeatureValue(feat1);
ArrayFS arrayFS2 = (ArrayFS) fs2.getFeatureValue(feat2);
if ((arrayFS1 == null) && (arrayFS2 == null)) {
// ok
} else {
Assert.assertEquals(arrayFS1.size(), arrayFS2.size());
for (int j = 0; j < arrayFS1.size(); j++) {
assertEquals(arrayFS1.get(j), arrayFS2.get(j), visited);
}
}
} else // single feature value
{
FeatureStructure fsVal1 = fs1.getFeatureValue(feat1);