@Test
public void testEmptyCollectionAcceptance() throws Exception {
Query<E> q = ds.createQuery(E.class);
final FieldEnd<?> e = q.field("_id");
new AssertedFailure() {
public void thisMustFail() throws Throwable {
e.hasAllOf(Collections.EMPTY_LIST);
}
};
new AssertedFailure() {
public void thisMustFail() throws Throwable {
e.hasNoneOf(Collections.EMPTY_LIST);
}
};