You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static <T extends BaseEntity> boolean hasDuplicates(List<T> entities, T targetEntity) {
return entities.stream()
.map(BaseEntity::getUuid)
.distinct()
.count() != entities.size();
}
This code doesn't check if the target entity is in the list, so we need to add something like this to the tests to ensure that the target entity is in the list:
The broken code:
This code doesn't check if the target entity is in the list, so we need to add something like this to the tests to ensure that the target entity is in the list:
The text was updated successfully, but these errors were encountered: