public static <T> boolean matches(T bean, BeanMatcher... matchers) { return matches(Arrays.asList(bean), matchers); }
public static <T> boolean matches(T bean, BeanMatcher... matchers) { return matches(Arrays.asList(bean), matchers); }
public static <T> boolean matches(T bean, BeanMatcher... matchers) { return matches(Arrays.asList(bean), matchers); }
public static <T> void shouldNotMatch(List<T> items, BeanMatcher... matchers) { if (matches(items, matchers)) { throw new AssertionError("Found unneeded matching elements for " + join(matchers) + NEW_LINE +"Elements where " + join(items)); } }
public static <T> void shouldMatch(List<T> items, BeanMatcher... matchers) { if (!matches(items, matchers)) { throw new AssertionError("Failed to find matching elements for " + StringUtils.join(matchers) + NEW_LINE +"Elements where " + StringUtils.join(items)); } }
public static <T> void shouldMatch(T bean, BeanMatcher... matchers) { if (!matches(bean, matchers)) { throw new AssertionError("Expected " + Arrays.toString(matchers) + " but was " + descriptionOf(bean)); } }
public static <T> void shouldMatch(T bean, BeanMatcher... matchers) { if (!matches(bean, matchers)) { throw new AssertionError("Expected " + Arrays.toString(matchers) + " but was " + descriptionOf(bean)); } }
public static <T> void shouldMatch(T bean, BeanMatcher... matchers) { if (!matches(bean, matchers)) { throw new AssertionError("Expected " + Arrays.toString(matchers) + " but was " + descriptionOf(bean)); } }
public static <T> void shouldMatch(List<T> items, BeanMatcher... matchers) { if (!matches(items, matchers)) { throw new AssertionError("Failed to find matching elements for " + join(matchers) + NEW_LINE +"Elements where " + join(items)); } }
public static <T> void shouldMatch(List<T> items, BeanMatcher... matchers) { if (!matches(items, matchers)) { throw new AssertionError("Failed to find matching elements for " + join(matchers) + NEW_LINE +"Elements where " + join(items)); } }