use of org.orcid.jaxb.model.v3.dev1.record.GroupableActivity in project ORCID-Source by ORCID.
the class ActivitiesGroupGeneratorBaseTest method checkActivitiesDontBelongsToTheSameGroup.
/**
* Check that the given activities belongs to the same group in a list of given groups
*/
public void checkActivitiesDontBelongsToTheSameGroup(List<ActivitiesGroup> groups, GroupableActivity... activities) {
for (int i = 0; i < activities.length; i++) {
GroupableActivity a1 = activities[i];
ActivitiesGroup theGroup = getGroupThatContainsActivity(groups, a1);
for (int j = i + 1; j < activities.length; j++) {
assertFalse("activity[" + i + "] and activity[" + j + "] belongs to the same group", theGroup.belongsToGroup(activities[j]));
}
}
}
Aggregations