mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-06 21:05:50 +08:00
Added iterate test
This commit is contained in:
parent
e993b80737
commit
e1b9590844
@ -68,16 +68,19 @@ public class MongodbQuery<K> implements SimpleQuery<MongodbQuery<K>>,
|
||||
|
||||
@Override
|
||||
public MongodbQuery<K> limit(long limit) {
|
||||
//TODO Add support
|
||||
return queryMixin.limit(limit);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MongodbQuery<K> offset(long offset) {
|
||||
//TODO Add support
|
||||
return queryMixin.offset(offset);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MongodbQuery<K> restrict(QueryModifiers modifiers) {
|
||||
//TODO Implement this
|
||||
return queryMixin.restrict(modifiers);
|
||||
}
|
||||
|
||||
@ -143,11 +146,13 @@ public class MongodbQuery<K> implements SimpleQuery<MongodbQuery<K>>,
|
||||
|
||||
@Override
|
||||
public K uniqueResult() {
|
||||
//TODO Do this
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SearchResults<K> listResults() {
|
||||
//TODO Do this
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
||||
@ -118,6 +118,10 @@ public class MongodbQueryTest {
|
||||
assertEquals(false, i.hasNext());
|
||||
|
||||
}
|
||||
//TODO
|
||||
// - test dates
|
||||
// - test with empty values and nulls
|
||||
// - test more complex ands
|
||||
|
||||
private void assertQuery(Predicate e, User ... expected) {
|
||||
assertQuery(where(e).orderBy(user.lastName.asc(), user.firstName.asc()), expected );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user