net.thucydides.core.matchers.BeanUniquenessMatcher Maven / Gradle / Ivy
package net.thucydides.core.matchers;
import ch.lambdaj.function.convert.Converter;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import static ch.lambdaj.Lambda.convert;
import static net.thucydides.core.matchers.dates.BeanFields.fieldValueIn;
class BeanUniquenessMatcher implements BeanCollectionMatcher {
private final String fieldName;
public BeanUniquenessMatcher(String fieldName) {
this.fieldName = fieldName;
}
@Override
public boolean matches(Object target) {
return matches((Collection) target); //To change body of implemented methods use File | Settings | File Templates.
}
public boolean matches(Collection elements) {
List